SF.net SVN: geany: [2645] trunk/src
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Jun 5 12:43:13 UTC 2008
Revision: 2645
http://geany.svn.sourceforge.net/geany/?rev=2645&view=rev
Author: ntrel
Date: 2008-06-05 05:43:10 -0700 (Thu, 05 Jun 2008)
Log Message:
-----------
Replace 2 macros only used locally with const char pointers.
Modified Paths:
--------------
trunk/src/document.c
trunk/src/main.c
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2008-06-05 12:36:48 UTC (rev 2644)
+++ trunk/src/document.c 2008-06-05 12:43:10 UTC (rev 2645)
@@ -879,9 +879,10 @@
tmp_enc_idx == GEANY_ENCODING_UTF_7 || /* filter out UTF-7/8 and None where no NULL bytes */
tmp_enc_idx == GEANY_ENCODING_NONE)) /* are allowed */
{
-#define warn_msg _("The file \"%s\" could not be opened properly and has been truncated. " \
- "This can occur if the file contains a NULL byte. " \
- "Be aware that saving it can cause data loss.\nThe file was set to read-only.")
+ const gchar *warn_msg = _(
+ "The file \"%s\" could not be opened properly and has been truncated. " \
+ "This can occur if the file contains a NULL byte. " \
+ "Be aware that saving it can cause data loss.\nThe file was set to read-only.");
if (main_status.main_window_realized)
dialogs_show_msgbox(GTK_MESSAGE_WARNING, warn_msg, utf8_filename);
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2008-06-05 12:36:48 UTC (rev 2644)
+++ trunk/src/main.c 2008-06-05 12:43:10 UTC (rev 2645)
@@ -692,7 +692,7 @@
}
else
{
-#define msg _("Could not find file '%s'.")
+ const gchar *msg = _("Could not find file '%s'.");
g_printerr(msg, filename); /* also print to the terminal */
g_printerr("\n");
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