SF.net SVN: geany: [1679] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Jul 8 14:55:37 UTC 2007


Revision: 1679
          http://svn.sourceforge.net/geany/?rev=1679&view=rev
Author:   eht16
Date:     2007-07-08 07:55:37 -0700 (Sun, 08 Jul 2007)

Log Message:
-----------
Fix missing descriptive text in message box when closing an unsaved file on Windows.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/dialogs.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-07-07 17:12:50 UTC (rev 1678)
+++ trunk/ChangeLog	2007-07-08 14:55:37 UTC (rev 1679)
@@ -1,3 +1,9 @@
+2007-07-08  Enrico Tröger  <enrico.troeger at uvena.de>
+
+ * src/dialogs.c: Fix missing descriptive text in message box when
+                  closing an unsaved file on Windows.
+
+
 2007-07-07  Enrico Tröger  <enrico.troeger at uvena.de>
 
  * src/editor.c:

Modified: trunk/src/dialogs.c
===================================================================
--- trunk/src/dialogs.c	2007-07-07 17:12:50 UTC (rev 1678)
+++ trunk/src/dialogs.c	2007-07-08 14:55:37 UTC (rev 1679)
@@ -400,7 +400,7 @@
 #ifndef G_OS_WIN32
 	GtkWidget *dialog, *button;
 #endif
-	gchar *msg, *short_fn = NULL;
+	gchar *msg, *msg2, *short_fn = NULL;
 	gint ret;
 
 	// display the file tab to remind the user of the document
@@ -414,15 +414,16 @@
 
 	msg = g_strdup_printf(_("The file '%s' is not saved."),
 		(short_fn != NULL) ? short_fn : GEANY_STRING_UNTITLED);
+	msg2 = _("Do you want to save it before closing?");
 	g_free(short_fn);
 
 #ifdef G_OS_WIN32
+	setptr(msg, g_strconcat(msg, "\n", msg2, NULL));
 	ret = win32_message_dialog_unsaved(msg);
 #else
 	dialog = gtk_message_dialog_new(GTK_WINDOW(app->window), GTK_DIALOG_DESTROY_WITH_PARENT,
                                   GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", msg);
-	gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
-		"%s", _("Do you want to save it before closing?"));
+	gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", msg2);
 	gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
 
 	button = ui_button_new_with_image(GTK_STOCK_CLEAR, _("_Don't save"));


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list