Changeset 9486


Ignore:
Timestamp:
Nov 7, 2009, 2:03:12 AM (13 years ago)
Author:
charles
Message:

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

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/my-valgrind.sh

    r9265 r9486  
    33export G_DEBUG=gc-friendly
    44export GLIBCXX_FORCE_NEW=1
    5 valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=64 --log-file=x-valgrind --show-reachable=yes ./transmission -g /tmp/crash
     5valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=48 --log-file=x-valgrind --show-reachable=yes ./transmission -g /tmp/test
  • trunk/gtk/tr-core.c

    r9290 r9486  
    459459}
    460460
     461static int
     462tr_strcmp( const void * a,
     463           const void * b )
     464{
     465    if( a && b ) return strcmp( a, b );
     466    if( a ) return 1;
     467    if( b ) return -1;
     468    return 0;
     469}
     470
    461471#ifdef HAVE_GIO
    462472
     
    596606        g_dir_close( dir );
    597607    }
    598 }
    599 
    600 static int
    601 tr_strcmp( const void * a,
    602            const void * b )
    603 {
    604     if( a && b ) return strcmp( a, b );
    605     if( a ) return 1;
    606     if( b ) return -1;
    607     return 0;
    608608}
    609609
  • trunk/gtk/tr-prefs.c

    r9436 r9486  
    273273    GtkWidget *  w;
    274274    GtkWidget *  w2;
    275 
    276 #ifdef HAVE_GIO
    277275    GtkWidget *  l;
    278 #endif
    279276
    280277    t = hig_workarea_create( );
Note: See TracChangeset for help on using the changeset viewer.