diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-08 03:44:46 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-08 03:45:43 +0800 |
commit | 79741ccd3f90c4c8aab672b508606d63c3899584 (patch) | |
tree | 1665585e797b21156c17595263d7f47bc43bebff /widgets/misc | |
parent | c5a010f9ac7087a2d7b050497977182161ed115c (diff) | |
download | gsoc2013-evolution-79741ccd3f90c4c8aab672b508606d63c3899584.tar.gz gsoc2013-evolution-79741ccd3f90c4c8aab672b508606d63c3899584.tar.zst gsoc2013-evolution-79741ccd3f90c4c8aab672b508606d63c3899584.zip |
BugĀ 606250 - Remove usage of deprecated GTK+ symbols
Several GtkWidget macros were recently deprecated.
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-attachment-handler-image.c | 2 | ||||
-rw-r--r-- | widgets/misc/e-attachment-handler-sendto.c | 2 | ||||
-rw-r--r-- | widgets/misc/e-attachment-view.c | 20 | ||||
-rw-r--r-- | widgets/misc/e-calendar.c | 2 | ||||
-rw-r--r-- | widgets/misc/e-canvas.c | 2 | ||||
-rw-r--r-- | widgets/misc/e-charset-combo-box.c | 2 | ||||
-rw-r--r-- | widgets/misc/e-signature-manager.c | 4 | ||||
-rw-r--r-- | widgets/misc/e-web-view.c | 6 | ||||
-rw-r--r-- | widgets/misc/ea-calendar-cell.c | 2 |
9 files changed, 21 insertions, 21 deletions
diff --git a/widgets/misc/e-attachment-handler-image.c b/widgets/misc/e-attachment-handler-image.c index a91b433c6e..277a51be7f 100644 --- a/widgets/misc/e-attachment-handler-image.c +++ b/widgets/misc/e-attachment-handler-image.c @@ -86,7 +86,7 @@ action_image_set_as_background_saved_cb (EAttachment *attachment, error: parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; dialog = gtk_message_dialog_new_with_markup ( parent, GTK_DIALOG_DESTROY_WITH_PARENT, diff --git a/widgets/misc/e-attachment-handler-sendto.c b/widgets/misc/e-attachment-handler-sendto.c index 7cf651d98f..dda351bc8d 100644 --- a/widgets/misc/e-attachment-handler-sendto.c +++ b/widgets/misc/e-attachment-handler-sendto.c @@ -78,7 +78,7 @@ sendto_save_finished_cb (EAttachment *attachment, error: parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; dialog = gtk_message_dialog_new_with_markup ( parent, GTK_DIALOG_DESTROY_WITH_PARENT, diff --git a/widgets/misc/e-attachment-view.c b/widgets/misc/e-attachment-view.c index 715018c2fb..7529e669fb 100644 --- a/widgets/misc/e-attachment-view.c +++ b/widgets/misc/e-attachment-view.c @@ -75,7 +75,7 @@ action_add_cb (GtkAction *action, gpointer parent; parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; store = e_attachment_view_get_store (view); e_attachment_store_run_load_dialog (store, parent); @@ -150,7 +150,7 @@ action_properties_cb (GtkAction *action, attachment = selected->data; parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; dialog = e_attachment_dialog_new (parent, attachment); gtk_dialog_run (GTK_DIALOG (dialog)); @@ -174,7 +174,7 @@ action_recent_cb (GtkAction *action, store = e_attachment_view_get_store (view); parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; uri = gtk_recent_chooser_get_current_uri (chooser); attachment = e_attachment_new_for_uri (uri); @@ -204,7 +204,7 @@ action_save_all_cb (GtkAction *action, store = e_attachment_view_get_store (view); parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; /* XXX We lose the previous selection. */ e_attachment_view_select_all (view); @@ -244,7 +244,7 @@ action_save_as_cb (GtkAction *action, store = e_attachment_view_get_store (view); parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; selected = e_attachment_view_get_selected_attachments (view); @@ -398,7 +398,7 @@ attachment_view_netscape_url (EAttachmentView *view, store = e_attachment_view_get_store (view); parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; attachment = e_attachment_new_for_uri (strv[0]); e_attachment_store_add_attachment (store, attachment); @@ -453,7 +453,7 @@ attachment_view_text_calendar (EAttachmentView *view, store = e_attachment_view_get_store (view); parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; attachment = e_attachment_new (); e_attachment_set_mime_part (attachment, mime_part); @@ -509,7 +509,7 @@ attachment_view_text_x_vcard (EAttachmentView *view, store = e_attachment_view_get_store (view); parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; attachment = e_attachment_new (); e_attachment_set_mime_part (attachment, mime_part); @@ -548,7 +548,7 @@ attachment_view_uris (EAttachmentView *view, store = e_attachment_view_get_store (view); parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; for (ii = 0; uris[ii] != NULL; ii++) { EAttachment *attachment; @@ -1012,7 +1012,7 @@ e_attachment_view_open_path (EAttachmentView *view, gtk_tree_model_get (model, &iter, column_id, &attachment, -1); parent = gtk_widget_get_toplevel (GTK_WIDGET (view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; e_attachment_open_async ( attachment, app_info, (GAsyncReadyCallback) diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c index 920e83d3a3..44e4568656 100644 --- a/widgets/misc/e-calendar.c +++ b/widgets/misc/e-calendar.c @@ -578,7 +578,7 @@ e_calendar_focus (GtkWidget *widget, GtkDirectionType direction) cal = E_CALENDAR (widget); canvas = GNOME_CANVAS (widget); - if (!GTK_WIDGET_CAN_FOCUS (widget)) + if (!gtk_widget_get_can_focus (widget)) return FALSE; children[0] = GNOME_CANVAS_ITEM (cal->calitem); diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c index aeb26344ab..5f719fed80 100644 --- a/widgets/misc/e-canvas.c +++ b/widgets/misc/e-canvas.c @@ -561,7 +561,7 @@ e_canvas_item_grab_focus (GnomeCanvasItem *item, gboolean widget_too) g_return_if_fail (item != NULL); g_return_if_fail (GNOME_IS_CANVAS_ITEM (item)); - g_return_if_fail (GTK_WIDGET_CAN_FOCUS (GTK_WIDGET (item->canvas))); + g_return_if_fail (gtk_widget_get_can_focus (GTK_WIDGET (item->canvas))); focused_item = item->canvas->focused_item; diff --git a/widgets/misc/e-charset-combo-box.c b/widgets/misc/e-charset-combo-box.c index 9c992ce1f7..142c8a98a3 100644 --- a/widgets/misc/e-charset-combo-box.c +++ b/widgets/misc/e-charset-combo-box.c @@ -84,7 +84,7 @@ charset_combo_box_run_dialog (ECharsetComboBox *combo_box) * finally resolved. */ parent = gtk_widget_get_toplevel (GTK_WIDGET (combo_box)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; object = G_OBJECT (combo_box->priv->other_action); charset = g_object_get_data (object, "charset"); diff --git a/widgets/misc/e-signature-manager.c b/widgets/misc/e-signature-manager.c index dff74a0b23..d30d20368a 100644 --- a/widgets/misc/e-signature-manager.c +++ b/widgets/misc/e-signature-manager.c @@ -100,7 +100,7 @@ signature_manager_run_script_dialog (ESignatureManager *manager, gchar *path; parent = gtk_widget_get_toplevel (GTK_WIDGET (manager)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; dialog = e_signature_script_dialog_new (parent); gtk_window_set_title (GTK_WINDOW (dialog), title); @@ -317,7 +317,7 @@ signature_manager_editor_created (ESignatureManager *manager, position = GTK_WIN_POS_CENTER_ON_PARENT; parent = gtk_widget_get_toplevel (GTK_WIDGET (manager)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; gtk_window_set_transient_for (GTK_WINDOW (editor), parent); gtk_window_set_position (GTK_WINDOW (editor), position); diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c index a873731014..0a0e3143ef 100644 --- a/widgets/misc/e-web-view.c +++ b/widgets/misc/e-web-view.c @@ -255,7 +255,7 @@ action_http_open_cb (GtkAction *action, gpointer parent; parent = gtk_widget_get_toplevel (GTK_WIDGET (web_view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; uri = e_web_view_get_selected_uri (web_view); g_return_if_fail (uri != NULL); @@ -311,7 +311,7 @@ action_send_message_cb (GtkAction *action, gpointer parent; parent = gtk_widget_get_toplevel (GTK_WIDGET (web_view)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; uri = e_web_view_get_selected_uri (web_view); g_return_if_fail (uri != NULL); @@ -684,7 +684,7 @@ web_view_link_clicked (GtkHTML *html, gpointer parent; parent = gtk_widget_get_toplevel (GTK_WIDGET (html)); - parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + parent = gtk_widget_is_toplevel (parent) ? parent : NULL; e_show_uri (parent, uri); } diff --git a/widgets/misc/ea-calendar-cell.c b/widgets/misc/ea-calendar-cell.c index 05d0dcce6b..8728f49a46 100644 --- a/widgets/misc/ea-calendar-cell.c +++ b/widgets/misc/ea-calendar-cell.c @@ -378,7 +378,7 @@ component_interface_grab_focus (AtkComponent *component) gtk_widget_grab_focus (GTK_WIDGET (GNOME_CANVAS_ITEM (calitem)->canvas)); toplevel = gtk_widget_get_toplevel (GTK_WIDGET (GNOME_CANVAS_ITEM (calitem)->canvas)); - if (toplevel && GTK_WIDGET_TOPLEVEL (toplevel)) + if (toplevel && gtk_widget_is_toplevel (toplevel)) gtk_window_present (GTK_WINDOW (toplevel)); return TRUE; |