Changeset 10
- Timestamp:
- Jan 12, 2006, 6:45:41 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r6 r10 48 48 if pkg-config gtk+-2.0 > /dev/null 2>&1 49 49 then 50 cat > testconf.c << EOF 51 #include <gtk/gtk.h> 52 int main() 53 { 54 gtk_main(); 55 } 56 EOF 57 if $CC `pkg-config gtk+-2.0 --cflags --libs` -o testconf testconf.c > /dev/null 2>&1 50 if expr `pkg-config --modversion gtk+-2.0` '>=' 2.6.0 > /dev/null 2>&1 58 51 then 59 echo "GTK+: yes" 60 GTK=yes 61 GTKCCFLAGS=`pkg-config gtk+-2.0 --cflags` 62 GTKLINKLIBS=`pkg-config gtk+-2.0 --libs` 52 cat > testconf.c << EOF 53 #include <gtk/gtk.h> 54 int main() 55 { 56 gtk_main(); 57 } 58 EOF 59 if $CC `pkg-config gtk+-2.0 --cflags --libs` -o testconf testconf.c > /dev/null 2>&1 60 then 61 echo "GTK+: yes" 62 GTK=yes 63 GTKCCFLAGS=`pkg-config gtk+-2.0 --cflags` 64 GTKLINKLIBS=`pkg-config gtk+-2.0 --libs` 65 else 66 echo "GTK+: no" 67 GTK=no 68 fi 69 rm -f testconf.c testconf 63 70 else 64 echo "GTK+: no "71 echo "GTK+: no (2.6.0 or later is required)" 65 72 GTK=no 66 73 fi 67 rm -f testconf.c testconf68 74 else 69 75 echo "GTK+: no" -
trunk/gtk/main.c
r7 r10 473 473 free(st); 474 474 475 /* remove any excess rows */ 476 if(gtk_tree_model_iter_next(GTK_TREE_MODEL(data->model), &iter)) 477 while(gtk_list_store_remove(data->model, &iter)) 478 ; 479 475 480 return TRUE; 476 481 } … … 593 598 free(sb); 594 599 tr_torrentClose(data->tr, index); 595 gtk_list_store_remove(GTK_LIST_STORE(model), &iter);596 600 savetorrents(data->tr, data->wind, -1, NULL); 601 updatemodel(data); 597 602 break; 598 603 case ACT_INFO:
Note: See TracChangeset
for help on using the changeset viewer.