+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.
+
+2005-04-29 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * shell/ev-page-action.c: (update_page_cache),
+ (ev_page_action_dispose):
+
2005-04-28 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* backend/ev-page-cache.c: (_ev_page_cache_new),
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),
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;
}
{
if (window->priv->fullscreen_popup != NULL)
{
- /* FIXME multihead */
- g_signal_handlers_disconnect_by_func
- (gdk_screen_get_default (),
- G_CALLBACK (screen_size_changed_cb), window);
-
gtk_widget_destroy (window->priv->fullscreen_popup);
window->priv->fullscreen_popup = NULL;
}
gtk_window_set_resizable (GTK_WINDOW (popup), FALSE);
/* FIXME multihead */
- g_signal_connect (gdk_screen_get_default (), "size-changed",
- G_CALLBACK (screen_size_changed_cb), window);
- g_signal_connect (popup, "size_request",
- G_CALLBACK (fullscreen_popup_size_request_cb), window);
+ g_signal_connect_object (gdk_screen_get_default (), "size-changed",
+ G_CALLBACK (screen_size_changed_cb),
+ window, 0);
+ g_signal_connect_object (popup, "size_request",
+ G_CALLBACK (fullscreen_popup_size_request_cb),
+ window, 0);
return popup;
}