diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-31 03:03:19 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-04-08 23:05:26 +0800 |
commit | 72797decc12602b181f69dba7c54df7a0d1b9326 (patch) | |
tree | ecd1314c92bc26b59647b351b2d47e446f4ed21d /mail/mail-send-recv.c | |
parent | 3ba0b61f9f447b01c3a83bfb78ee33a45d413700 (diff) | |
download | gsoc2013-evolution-72797decc12602b181f69dba7c54df7a0d1b9326.tar.gz gsoc2013-evolution-72797decc12602b181f69dba7c54df7a0d1b9326.tar.zst gsoc2013-evolution-72797decc12602b181f69dba7c54df7a0d1b9326.zip |
Giant leap towards GSEAL compliance.
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 4ffe4fd7a5..ffce0912d5 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -409,6 +409,7 @@ build_dialog (GtkWindow *parent, gint row, num_sources; GList *list = NULL; struct _send_data *data; + GtkWidget *container; GtkWidget *send_icon; GtkWidget *recv_icon; GtkWidget *scrolled_window; @@ -433,8 +434,12 @@ build_dialog (GtkWindow *parent, GTK_WINDOW (send_recv_dialog)); gtk_widget_ensure_style ((GtkWidget *)gd); - gtk_container_set_border_width ((GtkContainer *)gd->vbox, 0); - gtk_container_set_border_width ((GtkContainer *)gd->action_area, 6); + + container = gtk_dialog_get_action_area (gd); + gtk_container_set_border_width (GTK_CONTAINER (container), 6); + + container = gtk_dialog_get_content_area (gd); + gtk_container_set_border_width (GTK_CONTAINER (container), 0); cancel_button = gtk_button_new_with_mnemonic (_("Cancel _All")); gtk_button_set_image ( @@ -477,10 +482,11 @@ build_dialog (GtkWindow *parent, GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); + container = gtk_dialog_get_content_area (gd); gtk_scrolled_window_add_with_viewport ( GTK_SCROLLED_WINDOW (scrolled_window), table); gtk_box_pack_start ( - GTK_BOX (gd->vbox), scrolled_window, TRUE, TRUE, 0); + GTK_BOX (container), scrolled_window, TRUE, TRUE, 0); gtk_widget_show (scrolled_window); /* must bet setup after send_recv_dialog as it may re-trigger send-recv button */ @@ -972,13 +978,8 @@ mail_send_receive (GtkWindow *parent) GList *scan; if (send_recv_dialog != NULL) { -#if GTK_CHECK_VERSION(2,19,7) if (parent != NULL && gtk_widget_get_realized (send_recv_dialog)) { -#else - if (parent != NULL && GTK_WIDGET_REALIZED (send_recv_dialog)) { -#endif - gdk_window_show (send_recv_dialog->window); - gdk_window_raise (send_recv_dialog->window); + gtk_window_present (GTK_WINDOW (send_recv_dialog)); } return send_recv_dialog; } |