From 5b09db3c6a81a31077ce710375bfbd397e26dc4a Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Tue, 20 Jan 2009 23:04:57 +0000 Subject: shell/ev-sidebar-links.c 2009-01-21 Hiroyuki Ikezoe * shell/ev-sidebar-links.c * shell/ev-print-operation.c: * shell/ev-history.c: * shell/ev-file-monitor.c: * shell/ev-window.c: * shell/ev-password-view.c: * shell/ev-sidebar-thumbnails.c: * shell/ev-sidebar-attachments.c: * libview/ev-pixbuf-cache.c: * libview/ev-view.c: Remove needless G_OBJECT from g_signal_connect. Bug #568386. svn path=/trunk/; revision=3370 --- (limited to 'shell') diff --git a/shell/ev-file-monitor.c b/shell/ev-file-monitor.c index 3db0e78..2b06d34 100644 --- a/shell/ev-file-monitor.c +++ b/shell/ev-file-monitor.c @@ -155,7 +155,7 @@ ev_file_monitor_new (const gchar *uri) file = g_file_new_for_uri (uri); ev_monitor->priv->monitor = g_file_monitor_file (file, G_FILE_MONITOR_NONE, NULL, &error); if (ev_monitor->priv->monitor) { - g_signal_connect (G_OBJECT (ev_monitor->priv->monitor), "changed", + g_signal_connect (ev_monitor->priv->monitor, "changed", G_CALLBACK (ev_file_monitor_changed_cb), ev_monitor); } else if (error) { g_warning ("%s", error->message); diff --git a/shell/ev-history.c b/shell/ev-history.c index cb015cc..c726120 100644 --- a/shell/ev-history.c +++ b/shell/ev-history.c @@ -117,7 +117,7 @@ ev_history_add_link (EvHistory *history, EvLink *link) history->priv->links); } - g_signal_emit (G_OBJECT (history), signals[HISTORY_CHANGED], 0); + g_signal_emit (history, signals[HISTORY_CHANGED], 0); } EvLink * diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c index f7d0ca3..a71e423 100644 --- a/shell/ev-password-view.c +++ b/shell/ev-password-view.c @@ -398,7 +398,7 @@ ev_password_view_ask_password (EvPasswordView *password_view) gtk_widget_show (choice); } - g_signal_connect (G_OBJECT (dialog), "response", + g_signal_connect (dialog, "response", G_CALLBACK (ev_password_dialog_got_response), password_view); diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c index 17b7913..3723bd8 100644 --- a/shell/ev-print-operation.c +++ b/shell/ev-print-operation.c @@ -927,10 +927,10 @@ export_print_page (EvPrintOperationExport *export) if (!export->job_export) { export->job_export = ev_job_export_new (op->document); - g_signal_connect (G_OBJECT (export->job_export), "finished", + g_signal_connect (export->job_export, "finished", G_CALLBACK (export_job_finished), (gpointer)export); - g_signal_connect (G_OBJECT (export->job_export), "cancelled", + g_signal_connect (export->job_export, "cancelled", G_CALLBACK (export_job_cancelled), (gpointer)export); } @@ -1151,7 +1151,7 @@ ev_print_operation_export_run (EvPrintOperation *op, gtk_print_unix_dialog_set_page_setup (GTK_PRINT_UNIX_DIALOG (dialog), export->page_setup); - g_signal_connect (G_OBJECT (dialog), "response", + g_signal_connect (dialog, "response", G_CALLBACK (ev_print_operation_export_print_dialog_response_cb), export); diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c index 47549f6..677d61f 100644 --- a/shell/ev-sidebar-attachments.c +++ b/shell/ev-sidebar-attachments.c @@ -567,7 +567,7 @@ ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar) "text-column", COLUMN_NAME, "pixbuf-column", COLUMN_ICON, NULL); - g_signal_connect_swapped (G_OBJECT (ev_attachbar->priv->icon_view), + g_signal_connect_swapped (ev_attachbar->priv->icon_view, "button-press-event", G_CALLBACK (ev_sidebar_attachments_button_press), (gpointer) ev_attachbar); @@ -605,7 +605,7 @@ ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar) GDK_ACTION_COPY); #endif - g_signal_connect (G_OBJECT (ev_attachbar->priv->icon_view), + g_signal_connect (ev_attachbar->priv->icon_view, "drag-data-get", G_CALLBACK (ev_sidebar_attachments_drag_data_get), (gpointer) ev_attachbar); @@ -665,7 +665,7 @@ ev_sidebar_attachments_set_document (EvSidebarPage *page, screen = gtk_widget_get_screen (GTK_WIDGET (ev_attachbar)); ev_attachbar->priv->icon_theme = gtk_icon_theme_get_for_screen (screen); - g_signal_connect_swapped (G_OBJECT (ev_attachbar->priv->icon_theme), + g_signal_connect_swapped (ev_attachbar->priv->icon_theme, "changed", G_CALLBACK (ev_sidebar_attachments_update_icons), (gpointer) ev_attachbar); diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c index 623753c..91986f8 100644 --- a/shell/ev-sidebar-links.c +++ b/shell/ev-sidebar-links.c @@ -439,11 +439,11 @@ ev_sidebar_links_construct (EvSidebarLinks *ev_sidebar_links) NULL); g_object_set (G_OBJECT (renderer), "style", PANGO_STYLE_ITALIC, NULL); - g_signal_connect (GTK_TREE_VIEW (priv->tree_view), + g_signal_connect (priv->tree_view, "button_press_event", G_CALLBACK (button_press_cb), ev_sidebar_links); - g_signal_connect (GTK_TREE_VIEW (priv->tree_view), + g_signal_connect (priv->tree_view, "popup_menu", G_CALLBACK (popup_menu_cb), ev_sidebar_links); @@ -658,7 +658,7 @@ job_finished_callback (EvJobLinks *job, sidebar_links); if (priv->row_activated_id <= 0) { priv->row_activated_id = - g_signal_connect (G_OBJECT (priv->tree_view), "row-activated", + g_signal_connect (priv->tree_view, "row-activated", G_CALLBACK (row_activated_callback), sidebar_links); } diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index cc4fbfc..08be12b 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -593,11 +593,11 @@ ev_sidebar_thumbnails_init (EvSidebarThumbnails *ev_sidebar_thumbnails) gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (priv->swindow), GTK_SHADOW_IN); priv->vadjustment = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (priv->swindow)); - g_signal_connect_data (G_OBJECT (priv->vadjustment), "value-changed", + g_signal_connect_data (priv->vadjustment, "value-changed", G_CALLBACK (adjustment_changed_cb), ev_sidebar_thumbnails, NULL, G_CONNECT_SWAPPED | G_CONNECT_AFTER); - g_signal_connect_swapped (G_OBJECT (priv->swindow), "size-allocate", + g_signal_connect_swapped (priv->swindow, "size-allocate", G_CALLBACK (adjustment_changed_cb), ev_sidebar_thumbnails); gtk_box_pack_start (GTK_BOX (ev_sidebar_thumbnails), priv->swindow, TRUE, TRUE, 0); diff --git a/shell/ev-window.c b/shell/ev-window.c index 54db149..6d501da 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1433,7 +1433,7 @@ ev_window_load_job_cb (EvJob *job, /* Create a monitor for the document */ ev_window->priv->monitor = ev_file_monitor_new (ev_window->priv->uri); - g_signal_connect_swapped (G_OBJECT (ev_window->priv->monitor), "changed", + g_signal_connect_swapped (ev_window->priv->monitor, "changed", G_CALLBACK (ev_window_document_changed), ev_window); @@ -2332,7 +2332,7 @@ ev_window_setup_recent (EvWindow *ev_window) gtk_recent_info_ref (info), (GDestroyNotify) gtk_recent_info_unref); - g_signal_connect (G_OBJECT (action), "activate", + g_signal_connect (action, "activate", G_CALLBACK (ev_window_cmd_recent_file_activate), (gpointer) ev_window); @@ -2947,13 +2947,13 @@ ev_window_print_range (EvWindow *ev_window, ev_window->priv->print_queue = g_queue_new (); op = ev_print_operation_new (ev_window->priv->document); - g_signal_connect (G_OBJECT (op), "begin_print", + g_signal_connect (op, "begin_print", G_CALLBACK (ev_window_print_operation_begin_print), (gpointer)ev_window); - g_signal_connect (G_OBJECT (op), "status_changed", + g_signal_connect (op, "status_changed", G_CALLBACK (ev_window_print_operation_status_changed), (gpointer)ev_window); - g_signal_connect (G_OBJECT (op), "done", + g_signal_connect (op, "done", G_CALLBACK (ev_window_print_operation_done), (gpointer)ev_window); -- cgit v0.9.1