patches, more apply-and-ok-button fixes for applets
- From: Richard Hult <rhult hem2 passagen se>
- To: gnome-list gnome org
- Subject: patches, more apply-and-ok-button fixes for applets
- Date: Fri, 13 Nov 1998 21:40:49 +0100 (CET)
Ok, I found out that the problem was kind of usual among the applets,
so I went through them and fixed the following:
drivemount
clockmail
modemlights
diskusage
netload
The ones I didn't fix are:
gnomepager
slashapp (doesn't seem to compile w/o errors for me)
There may be more of them but I haven't found any.
Richard
Index: properties.c
===================================================================
RCS file: /cvs/gnome/gnome-core/applets/drivemount/properties.c,v
retrieving revision 1.6
diff -u -r1.6 properties.c
--- properties.c 1998/10/06 20:24:14 1.6
+++ properties.c 1998/11/13 20:29:32
@@ -147,6 +147,7 @@
dd->prop_spin = gtk_spin_button_new( GTK_ADJUSTMENT(delay_adj), 1, 0 );
gtk_box_pack_start( GTK_BOX(hbox), dd->prop_spin, FALSE, FALSE, 5);
gtk_signal_connect( GTK_OBJECT(delay_adj),"value_changed",GTK_SIGNAL_FUNC(update_delay_cb), dd);
+ gtk_signal_connect( GTK_OBJECT(dd->prop_spin),"changed",GTK_SIGNAL_FUNC(update_delay_cb), dd);
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(dd->prop_spin),GTK_UPDATE_ALWAYS );
gtk_widget_show(dd->prop_spin);
Index: properties.c
===================================================================
RCS file: /cvs/gnome/gnome-core/applets/clockmail/properties.c,v
retrieving revision 1.12
diff -u -r1.12 properties.c
--- properties.c 1998/11/08 08:04:50 1.12
+++ properties.c 1998/11/13 20:30:06
@@ -295,6 +295,7 @@
spin = gtk_spin_button_new( GTK_ADJUSTMENT(adj), 1, 0 );
gtk_box_pack_start( GTK_BOX(hbox), spin, FALSE, FALSE, 5);
gtk_signal_connect( GTK_OBJECT(adj),"value_changed",GTK_SIGNAL_FUNC(gmt_offset_cb), ad);
+ gtk_signal_connect( GTK_OBJECT(spin),"changed",GTK_SIGNAL_FUNC(gmt_offset_cb), ad);
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(spin),GTK_UPDATE_ALWAYS );
gtk_widget_show(spin);
@@ -363,6 +364,7 @@
gtk_widget_set_usize(spin, 100, -1);
gtk_box_pack_start( GTK_BOX(hbox), spin, FALSE, FALSE, 5);
gtk_signal_connect( GTK_OBJECT(adj),"value_changed",GTK_SIGNAL_FUNC(mail_max_cb), ad);
+ gtk_signal_connect( GTK_OBJECT(spin),"changed",GTK_SIGNAL_FUNC(mail_max_cb), ad);
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(spin),GTK_UPDATE_ALWAYS );
gtk_widget_show(spin);
Index: properties.c
===================================================================
RCS file: /cvs/gnome/gnome-core/applets/modemlights/properties.c,v
retrieving revision 1.8
diff -u -r1.8 properties.c
--- properties.c 1998/09/19 12:21:52 1.8
+++ properties.c 1998/11/13 20:42:15
@@ -148,6 +148,7 @@
delay_w = gtk_spin_button_new( GTK_ADJUSTMENT(delay_adj), 1, 0 );
gtk_box_pack_start( GTK_BOX(hbox), delay_w, FALSE, FALSE, 5);
gtk_signal_connect( GTK_OBJECT(delay_adj),"value_changed",GTK_SIGNAL_FUNC(update_delay_cb), delay_w);
+ gtk_signal_connect( GTK_OBJECT(delay_w),"changed",GTK_SIGNAL_FUNC(update_delay_cb), delay_w);
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(delay_w),GTK_UPDATE_ALWAYS );
gtk_widget_show(delay_w);
Index: properties.c
===================================================================
RCS file: /cvs/gnome/gnome-core/applets/diskusage/properties.c,v
retrieving revision 1.7
diff -u -r1.7 properties.c
--- properties.c 1998/09/30 23:45:44 1.7
+++ properties.c 1998/11/13 20:30:37
@@ -225,10 +225,14 @@
gtk_signal_connect( GTK_OBJECT(height_a),"value_changed",
GTK_SIGNAL_FUNC(height_cb), height );
+ gtk_signal_connect( GTK_OBJECT(height),"changed",
+ GTK_SIGNAL_FUNC(height_cb), height );
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(height),
GTK_UPDATE_ALWAYS );
gtk_signal_connect( GTK_OBJECT(width_a),"value_changed",
GTK_SIGNAL_FUNC(width_cb), width );
+ gtk_signal_connect( GTK_OBJECT(width),"changed",
+ GTK_SIGNAL_FUNC(width_cb), width );
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(width),
GTK_UPDATE_ALWAYS );
@@ -247,6 +251,8 @@
#endif
gtk_signal_connect( GTK_OBJECT(freq_a),"value_changed",
+ GTK_SIGNAL_FUNC(freq_cb), freq );
+ gtk_signal_connect( GTK_OBJECT(freq),"changed",
GTK_SIGNAL_FUNC(freq_cb), freq );
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(freq),
GTK_UPDATE_ALWAYS );
Index: properties.c
===================================================================
RCS file: /cvs/gnome/gnome-core/applets/netload/properties.c,v
retrieving revision 1.9
diff -u -r1.9 properties.c
--- properties.c 1998/08/02 22:17:50 1.9
+++ properties.c 1998/11/13 20:31:02
@@ -140,10 +140,14 @@
gtk_signal_connect( GTK_OBJECT(height_a),"value_changed",
GTK_SIGNAL_FUNC(height_cb), height );
+ gtk_signal_connect( GTK_OBJECT(height),"changed",
+ GTK_SIGNAL_FUNC(height_cb), height );
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(height),
GTK_UPDATE_ALWAYS );
gtk_signal_connect( GTK_OBJECT(width_a),"value_changed",
GTK_SIGNAL_FUNC(width_cb), width );
+ gtk_signal_connect( GTK_OBJECT(width),"changed",
+ GTK_SIGNAL_FUNC(width_cb), width );
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(width),
GTK_UPDATE_ALWAYS );
@@ -157,6 +161,8 @@
gtk_signal_connect( GTK_OBJECT(freq_a),"value_changed",
GTK_SIGNAL_FUNC(freq_cb), freq );
+ gtk_signal_connect( GTK_OBJECT(freq),"changed",
+ GTK_SIGNAL_FUNC(freq_cb), freq );
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(freq),
GTK_UPDATE_ALWAYS );
@@ -205,6 +211,8 @@
gtk_box_pack_start_defaults( GTK_BOX(line_box), line);
gtk_signal_connect( GTK_OBJECT(line_a),"value_changed",
+ GTK_SIGNAL_FUNC(line_cb), line );
+ gtk_signal_connect( GTK_OBJECT(line),"changed",
GTK_SIGNAL_FUNC(line_cb), line );
gtk_spin_button_set_update_policy( GTK_SPIN_BUTTON(line),
GTK_UPDATE_ALWAYS );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]