From a564659939cd013d4abc9a386af8b4f5c8cc885d Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 9 Dec 2013 00:25:27 +0100 Subject: [PATCH] Code cleanup --- src/xmleditor.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/xmleditor.c b/src/xmleditor.c index 791fa73..b0642c0 100644 --- a/src/xmleditor.c +++ b/src/xmleditor.c @@ -341,13 +341,12 @@ gboolean xmleditor_close(XMLEditor * xmleditor) } dialog = gtk_message_dialog_new(GTK_WINDOW(xmleditor->window), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s", + GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, #if GTK_CHECK_VERSION(2, 6, 0) - _("Warning")); + "%s", _("Warning")); gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), - "%s", #endif - _("There are unsaved changes.\n" + "%s", _("There are unsaved changes.\n" "Discard or save them?")); gtk_dialog_add_buttons(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_DISCARD,