diff options
author | Dan Winship <danw@src.gnome.org> | 2003-02-25 23:39:47 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-02-25 23:39:47 +0800 |
commit | 176204b94f0a36a105b4bb7e7ac7a5d6e9f0638b (patch) | |
tree | ed206deb30ceb6e14594d4b860f6eda92b512bd9 /widgets | |
parent | 17d13191decae2957d0b24f4d014de46828f5157 (diff) | |
download | gsoc2013-evolution-176204b94f0a36a105b4bb7e7ac7a5d6e9f0638b.tar.gz gsoc2013-evolution-176204b94f0a36a105b4bb7e7ac7a5d6e9f0638b.tar.zst gsoc2013-evolution-176204b94f0a36a105b4bb7e7ac7a5d6e9f0638b.zip |
Use g_signal_handlers_disconnect_by_func since
* e-map.c (e_map_destroy): Use
g_signal_handlers_disconnect_by_func since
gtk_signal_disconnect_by_data doesn't seem to work right.
(e_map_set_scroll_adjustments): Likewise.
svn path=/trunk/; revision=20052
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/misc/e-map.c | 26 |
2 files changed, 23 insertions, 10 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 4117d4ea32..28c1381fee 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,10 @@ +2003-02-25 Dan Winship <danw@ximian.com> + + * e-map.c (e_map_destroy): Use + g_signal_handlers_disconnect_by_func since + gtk_signal_disconnect_by_data doesn't seem to work right. + (e_map_set_scroll_adjustments): Likewise. + 2003-02-25 Jeffrey Stedfast <fejj@ximian.com> * e-dateedit.c (on_date_popup_date_selected): Same as below. diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c index 3cd13cd656..4e9a377460 100644 --- a/widgets/misc/e-map.c +++ b/widgets/misc/e-map.c @@ -231,8 +231,8 @@ e_map_destroy (GtkObject *object) view = E_MAP (object); priv = view->priv; - gtk_signal_disconnect_by_data (GTK_OBJECT (priv->hadj), view); - gtk_signal_disconnect_by_data (GTK_OBJECT (priv->vadj), view); + g_signal_handlers_disconnect_by_func (priv->hadj, adjustment_changed_cb, view); + g_signal_handlers_disconnect_by_func (priv->vadj, adjustment_changed_cb, view); if (GTK_OBJECT_CLASS (parent_class)->destroy) (*GTK_OBJECT_CLASS (parent_class)->destroy) (object); @@ -505,14 +505,18 @@ e_map_set_scroll_adjustments (GtkWidget *widget, GtkAdjustment *hadj, GtkAdjustm if (priv->hadj && priv->hadj != hadj) { - gtk_signal_disconnect_by_data (GTK_OBJECT (priv->hadj), view); - g_object_unref((priv->hadj)); + g_signal_handlers_disconnect_by_func (priv->hadj, + adjustment_changed_cb, + view); + g_object_unref (priv->hadj); } if (priv->vadj && priv->vadj != vadj) { - gtk_signal_disconnect_by_data (GTK_OBJECT (priv->vadj), view); - g_object_unref((priv->vadj)); + g_signal_handlers_disconnect_by_func (priv->vadj, + adjustment_changed_cb, + view); + g_object_unref (priv->vadj); } need_adjust = FALSE; @@ -520,10 +524,11 @@ e_map_set_scroll_adjustments (GtkWidget *widget, GtkAdjustment *hadj, GtkAdjustm if (priv->hadj != hadj) { priv->hadj = hadj; - g_object_ref((priv->hadj)); + g_object_ref (priv->hadj); gtk_object_sink (GTK_OBJECT (priv->hadj)); - g_signal_connect((priv->hadj), "value_changed", G_CALLBACK (adjustment_changed_cb), view); + g_signal_connect (priv->hadj, "value_changed", + G_CALLBACK (adjustment_changed_cb), view); need_adjust = TRUE; } @@ -531,10 +536,11 @@ e_map_set_scroll_adjustments (GtkWidget *widget, GtkAdjustment *hadj, GtkAdjustm if (priv->vadj != vadj) { priv->vadj = vadj; - g_object_ref((priv->vadj)); + g_object_ref (priv->vadj); gtk_object_sink (GTK_OBJECT (priv->vadj)); - g_signal_connect((priv->vadj), "value_changed", G_CALLBACK (adjustment_changed_cb), view); + g_signal_connect (priv->vadj, "value_changed", + G_CALLBACK (adjustment_changed_cb), view); need_adjust = TRUE; } |