mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk gtk) fix a couple of build errors on older versions of GTK+
This commit is contained in:
+1
-1
@@ -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
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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" ) );
|
||||
|
||||
Reference in New Issue
Block a user