diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-04-29 08:43:08 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-04-29 08:43:08 (GMT) |
commit | c057cade000e7e71c7af4f34ac86c96dfd52f526 (patch) | |
tree | f8df144f032ad72ffed559d12275be69cb20fe55 /shell/ev-page-action.c | |
parent | 2579c79ae8e8396e890e58a8df86317d23972902 (diff) |
Use connect_object rather than explicitly disconnect on dispose.
2005-04-29 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-page-action.c: (update_page_cache),
(ev_page_action_dispose):
* shell/ev-window.c: (destroy_fullscreen_popup),
(ev_window_create_fullscreen_popup):
Use connect_object rather than explicitly
disconnect on dispose.
Diffstat (limited to 'shell/ev-page-action.c')
-rw-r--r-- | shell/ev-page-action.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index 78e2570..deb9b77 100644 --- a/shell/ev-page-action.c +++ b/shell/ev-page-action.c @@ -197,10 +197,10 @@ update_page_cache (EvPageAction *page, GParamSpec *pspec, EvPageActionWidget *pr g_signal_handler_disconnect (proxy->page_cache, proxy->signal_id); if (page_cache != NULL) { - signal_id = g_signal_connect (page_cache, - "page-changed", - G_CALLBACK (page_changed_cb), - proxy); + signal_id = g_signal_connect_object (page_cache, + "page-changed", + G_CALLBACK (page_changed_cb), + proxy, 0); /* Set the initial value */ page_changed_cb (page_cache, ev_page_cache_get_current_page (page_cache), @@ -419,7 +419,6 @@ ev_page_action_dispose (GObject *object) EvPageAction *page = EV_PAGE_ACTION (object); if (page->priv->page_cache) { - g_signal_handlers_disconnect_matched (page->priv->page_cache, G_SIGNAL_MATCH_FUNC, 0, 0, NULL, page_changed_cb, NULL); g_object_unref (page->priv->page_cache); page->priv->page_cache = NULL; } |