# HG changeset patch # User Etan Reisner # Date 1246061112 0 # Node ID 9c0a18f16fcead8947a655e20647a7174158fa12 # Parent 2518c5fcd8a2e02a1ad40930d4a03465fbfb60b8 I was going to change the g_return_if_fail to a normal return but it actually is something that should scream if it happens (as the dialog should be modal), so instead this is just some formatting changes. diff -r 2518c5fcd8a2 -r 9c0a18f16fce pidgin/gtkconv.c --- a/pidgin/gtkconv.c Fri Jun 26 23:49:44 2009 +0000 +++ b/pidgin/gtkconv.c Sat Jun 27 00:05:12 2009 +0000 @@ -8196,15 +8196,11 @@ static void build_warn_close_dialog(PidginWindow *gtkwin) { - GtkWidget *label; - GtkWidget *vbox, *hbox; - GtkWidget *img; + GtkWidget *label, *vbox, *hbox, *img; g_return_if_fail(warn_close_dialog == NULL); - - warn_close_dialog = gtk_dialog_new_with_buttons( - _("Confirm close"), + warn_close_dialog = gtk_dialog_new_with_buttons(_("Confirm close"), GTK_WINDOW(gtkwin->window), GTK_DIALOG_MODAL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL);