]> granicus.if.org Git - transmission/commitdiff
use a gulong when remembering the return value of g_signal_connect(). we were using...
authorJordan Lee <jordan@transmissionbt.com>
Sat, 13 Aug 2011 21:03:38 +0000 (21:03 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 13 Aug 2011 21:03:38 +0000 (21:03 +0000)
gtk/details.c
gtk/tr-core.c

index 8c80b808c245289335cd4bbbe2fdb631523d74e1..e5680714318e5e80673d80ece1e845aa2f7d92dd 100644 (file)
@@ -51,17 +51,17 @@ struct DetailsImpl
     GtkWidget * idle_spin;
     GtkWidget * max_peers_spin;
 
-    guint honor_limits_check_tag;
-    guint up_limited_check_tag;
-    guint down_limited_check_tag;
-    guint down_limit_spin_tag;
-    guint up_limit_spin_tag;
-    guint bandwidth_combo_tag;
-    guint ratio_combo_tag;
-    guint ratio_spin_tag;
-    guint idle_combo_tag;
-    guint idle_spin_tag;
-    guint max_peers_spin_tag;
+    gulong honor_limits_check_tag;
+    gulong up_limited_check_tag;
+    gulong down_limited_check_tag;
+    gulong down_limit_spin_tag;
+    gulong up_limit_spin_tag;
+    gulong bandwidth_combo_tag;
+    gulong ratio_combo_tag;
+    gulong ratio_spin_tag;
+    gulong idle_combo_tag;
+    gulong idle_spin_tag;
+    gulong max_peers_spin_tag;
 
     GtkWidget * size_lb;
     GtkWidget * state_lb;
@@ -130,7 +130,7 @@ getTorrents( struct DetailsImpl * d, int * setmeCount )
 ****/
 
 static void
-set_togglebutton_if_different( GtkWidget * w, guint tag, gboolean value )
+set_togglebutton_if_different( GtkWidget * w, gulong tag, gboolean value )
 {
     GtkToggleButton * toggle = GTK_TOGGLE_BUTTON( w );
     const gboolean currentValue = gtk_toggle_button_get_active( toggle );
@@ -143,7 +143,7 @@ set_togglebutton_if_different( GtkWidget * w, guint tag, gboolean value )
 }
 
 static void
-set_int_spin_if_different( GtkWidget * w, guint tag, int value )
+set_int_spin_if_different( GtkWidget * w, gulong tag, int value )
 {
     GtkSpinButton * spin = GTK_SPIN_BUTTON( w );
     const int currentValue = gtk_spin_button_get_value_as_int( spin );
@@ -156,7 +156,7 @@ set_int_spin_if_different( GtkWidget * w, guint tag, int value )
 }
 
 static void
-set_double_spin_if_different( GtkWidget * w, guint tag, double value )
+set_double_spin_if_different( GtkWidget * w, gulong tag, double value )
 {
     GtkSpinButton * spin = GTK_SPIN_BUTTON( w );
     const double currentValue = gtk_spin_button_get_value( spin );
@@ -169,7 +169,7 @@ set_double_spin_if_different( GtkWidget * w, guint tag, double value )
 }
 
 static void
-unset_combo( GtkWidget * w, guint tag )
+unset_combo( GtkWidget * w, gulong tag )
 {
     GtkComboBox * combobox = GTK_COMBO_BOX( w );
 
@@ -468,8 +468,8 @@ idle_combo_new( void )
 static GtkWidget*
 options_page_new( struct DetailsImpl * d )
 {
-    guint tag;
     int row;
+    gulong tag;
     char buf[128];
     GtkWidget *t, *w, *tb, *h;
 
index fc3ef22030fb70b3a6f13f2db54098891f003b86..bb32345cbf26c46d9510c27709b201575d3f0ff8 100644 (file)
@@ -70,7 +70,7 @@ struct TrCorePrivate
     gulong         monitor_tag;
     GFile        * monitor_dir;
     GSList       * monitor_files;
-    guint          monitor_idle_tag;
+    gulong         monitor_idle_tag;
 
     gboolean       adding_from_watch_dir;
     gboolean       inhibit_allowed;