mirror of
https://github.com/transmission/transmission
synced 2025-01-30 19:03:04 +00:00
Update 2005-12-01
This commit is contained in:
parent
39702a094a
commit
4ac92bd6d0
2 changed files with 26 additions and 15 deletions
34
configure
vendored
34
configure
vendored
|
@ -47,24 +47,30 @@ gtk_test()
|
|||
{
|
||||
if pkg-config gtk+-2.0 > /dev/null 2>&1
|
||||
then
|
||||
cat > testconf.c << EOF
|
||||
#include <gtk/gtk.h>
|
||||
int main()
|
||||
{
|
||||
gtk_main();
|
||||
}
|
||||
EOF
|
||||
if $CC `pkg-config gtk+-2.0 --cflags --libs` -o testconf testconf.c > /dev/null 2>&1
|
||||
if expr `pkg-config --modversion gtk+-2.0` '>=' 2.6.0 > /dev/null 2>&1
|
||||
then
|
||||
echo "GTK+: yes"
|
||||
GTK=yes
|
||||
GTKCCFLAGS=`pkg-config gtk+-2.0 --cflags`
|
||||
GTKLINKLIBS=`pkg-config gtk+-2.0 --libs`
|
||||
cat > testconf.c << EOF
|
||||
#include <gtk/gtk.h>
|
||||
int main()
|
||||
{
|
||||
gtk_main();
|
||||
}
|
||||
EOF
|
||||
if $CC `pkg-config gtk+-2.0 --cflags --libs` -o testconf testconf.c > /dev/null 2>&1
|
||||
then
|
||||
echo "GTK+: yes"
|
||||
GTK=yes
|
||||
GTKCCFLAGS=`pkg-config gtk+-2.0 --cflags`
|
||||
GTKLINKLIBS=`pkg-config gtk+-2.0 --libs`
|
||||
else
|
||||
echo "GTK+: no"
|
||||
GTK=no
|
||||
fi
|
||||
rm -f testconf.c testconf
|
||||
else
|
||||
echo "GTK+: no"
|
||||
echo "GTK+: no (2.6.0 or later is required)"
|
||||
GTK=no
|
||||
fi
|
||||
rm -f testconf.c testconf
|
||||
else
|
||||
echo "GTK+: no"
|
||||
GTK=no
|
||||
|
|
|
@ -472,6 +472,11 @@ updatemodel(gpointer gdata) {
|
|||
}
|
||||
free(st);
|
||||
|
||||
/* remove any excess rows */
|
||||
if(gtk_tree_model_iter_next(GTK_TREE_MODEL(data->model), &iter))
|
||||
while(gtk_list_store_remove(data->model, &iter))
|
||||
;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -592,8 +597,8 @@ actionclick(GtkWidget *widget, gpointer gdata) {
|
|||
tr_torrentStop(data->tr, index);
|
||||
free(sb);
|
||||
tr_torrentClose(data->tr, index);
|
||||
gtk_list_store_remove(GTK_LIST_STORE(model), &iter);
|
||||
savetorrents(data->tr, data->wind, -1, NULL);
|
||||
updatemodel(data);
|
||||
break;
|
||||
case ACT_INFO:
|
||||
makeinfowind(data, index);
|
||||
|
|
Loading…
Reference in a new issue