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
6
configure
vendored
6
configure
vendored
|
@ -46,6 +46,8 @@ EOF
|
|||
gtk_test()
|
||||
{
|
||||
if pkg-config gtk+-2.0 > /dev/null 2>&1
|
||||
then
|
||||
if expr `pkg-config --modversion gtk+-2.0` '>=' 2.6.0 > /dev/null 2>&1
|
||||
then
|
||||
cat > testconf.c << EOF
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -65,6 +67,10 @@ EOF
|
|||
GTK=no
|
||||
fi
|
||||
rm -f testconf.c testconf
|
||||
else
|
||||
echo "GTK+: no (2.6.0 or later is required)"
|
||||
GTK=no
|
||||
fi
|
||||
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