(trunk gtk) fix a couple of build errors on older versions of GTK+

This commit is contained in:
Charles Kerr
2009-11-07 02:03:12 +00:00
parent bccaf64e55
commit cd6ff1211f
3 changed files with 11 additions and 14 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
export GLIBCXX_FORCE_NEW=1
valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=64 --log-file=x-valgrind --show-reachable=yes ./transmission -g /tmp/crash
valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=48 --log-file=x-valgrind --show-reachable=yes ./transmission -g /tmp/test
+10 -10
View File
@@ -458,6 +458,16 @@ tr_core_apply_defaults( tr_ctor * ctor )
}
}
static int
tr_strcmp( const void * a,
const void * b )
{
if( a && b ) return strcmp( a, b );
if( a ) return 1;
if( b ) return -1;
return 0;
}
#ifdef HAVE_GIO
struct watchdir_file
@@ -597,16 +607,6 @@ scanWatchDir( TrCore * core )
}
}
static int
tr_strcmp( const void * a,
const void * b )
{
if( a && b ) return strcmp( a, b );
if( a ) return 1;
if( b ) return -1;
return 0;
}
static void
updateWatchDir( TrCore * core )
{
-3
View File
@@ -272,10 +272,7 @@ torrentPage( GObject * core )
GtkWidget * t;
GtkWidget * w;
GtkWidget * w2;
#ifdef HAVE_GIO
GtkWidget * l;
#endif
t = hig_workarea_create( );
hig_workarea_add_section_title( t, &row, _( "Adding Torrents" ) );