From d17065a40d223194714e8c86b82e7adbabadb484 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 17 Dec 2011 09:29:11 -0500 Subject: Fix compiler warnings. gtk_dialog_new_with_buttons() requires some buttons, otherwise use gtk_dialog_new() and set title/transient-for/etc properties manually. --- mail/mail-send-recv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail') 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), -- cgit v1.2.3