diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-12-17 22:29:11 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-12-17 22:30:50 +0800 |
commit | d17065a40d223194714e8c86b82e7adbabadb484 (patch) | |
tree | d9b39264814e28427b9861d42b4fb37eb9e71581 /mail | |
parent | 14d333f14e71885e770683010fa0ee48f77a63a0 (diff) | |
download | gsoc2013-evolution-d17065a40d223194714e8c86b82e7adbabadb484.tar gsoc2013-evolution-d17065a40d223194714e8c86b82e7adbabadb484.tar.gz gsoc2013-evolution-d17065a40d223194714e8c86b82e7adbabadb484.tar.bz2 gsoc2013-evolution-d17065a40d223194714e8c86b82e7adbabadb484.tar.lz gsoc2013-evolution-d17065a40d223194714e8c86b82e7adbabadb484.tar.xz gsoc2013-evolution-d17065a40d223194714e8c86b82e7adbabadb484.tar.zst gsoc2013-evolution-d17065a40d223194714e8c86b82e7adbabadb484.zip |
Fix compiler warnings.
gtk_dialog_new_with_buttons() requires some buttons, otherwise use
gtk_dialog_new() and set title/transient-for/etc properties manually.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mail-send-recv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index b642326aca..d7ce20d457 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -506,13 +506,14 @@ build_dialog (GtkWindow *parent, g_free (transport_uid); } - send_recv_dialog = gtk_dialog_new_with_buttons ( - _("Send & Receive Mail"), parent, 0, NULL); + send_recv_dialog = gtk_dialog_new (); gd = GTK_DIALOG (send_recv_dialog); gtk_window_set_modal (GTK_WINDOW (send_recv_dialog), FALSE); gtk_window_set_icon_name (GTK_WINDOW (gd), "mail-send-receive"); gtk_window_set_default_size (GTK_WINDOW (gd), 600, 200); + gtk_window_set_title (GTK_WINDOW (gd), _("Send & Receive Mail")); + gtk_window_set_transient_for (GTK_WINDOW (gd), parent); e_restore_window ( GTK_WINDOW (gd), |