[latexila] Avoid GCC error messages when using -Werror=format-security
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Avoid GCC error messages when using -Werror=format-security
- Date: Sat, 17 Sep 2011 00:02:34 +0000 (UTC)
commit c9a5e4809a44e71377ed5fbc0caea1ac411a4265
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Sat Sep 17 01:59:28 2011 +0200
Avoid GCC error messages when using -Werror=format-security
Fixes bug 659290.
src/clean_build_files.vala | 2 +-
src/file_browser.vala | 2 +-
src/preferences_dialog.vala | 2 +-
src/project_dialogs.vala | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/clean_build_files.vala b/src/clean_build_files.vala
index 330d597..1754e2b 100644
--- a/src/clean_build_files.vala
+++ b/src/clean_build_files.vala
@@ -334,7 +334,7 @@ public class CleanBuildFiles : GLib.Object
DialogFlags.DESTROY_WITH_PARENT,
MessageType.INFO,
ButtonsType.OK,
- _("No build file to clean up."));
+ "%s", _("No build file to clean up."));
dialog.run ();
dialog.destroy ();
diff --git a/src/file_browser.vala b/src/file_browser.vala
index 76965f0..6ec58c1 100644
--- a/src/file_browser.vala
+++ b/src/file_browser.vala
@@ -435,7 +435,7 @@ public class FileBrowser : VBox
DialogFlags.DESTROY_WITH_PARENT,
MessageType.WARNING,
ButtonsType.CLOSE,
- _("File Browser"));
+ "%s", _("File Browser"));
dialog.format_secondary_text ("%s", e.message);
dialog.run ();
diff --git a/src/preferences_dialog.vala b/src/preferences_dialog.vala
index f2e9424..1c18a35 100644
--- a/src/preferences_dialog.vala
+++ b/src/preferences_dialog.vala
@@ -663,7 +663,7 @@ public class PreferencesDialog : Dialog
private Dialog get_reset_all_confirm_dialog (string msg)
{
Dialog dialog = new MessageDialog (this, DialogFlags.DESTROY_WITH_PARENT,
- MessageType.QUESTION, ButtonsType.NONE, msg);
+ MessageType.QUESTION, ButtonsType.NONE, "%s", msg);
dialog.add_button (Stock.CANCEL, ResponseType.CANCEL);
diff --git a/src/project_dialogs.vala b/src/project_dialogs.vala
index c4024ad..b59885b 100644
--- a/src/project_dialogs.vala
+++ b/src/project_dialogs.vala
@@ -286,7 +286,7 @@ namespace ProjectDialogs
DialogFlags.DESTROY_WITH_PARENT,
MessageType.QUESTION,
ButtonsType.NONE,
- _("Do you really want to clear all projects?"));
+ "%s", _("Do you really want to clear all projects?"));
clear_dialog.add_button (Stock.CANCEL, ResponseType.CANCEL);
@@ -318,7 +318,7 @@ namespace ProjectDialogs
DialogFlags.DESTROY_WITH_PARENT,
MessageType.ERROR,
ButtonsType.OK,
- _("The Main File is not in the directory."));
+ "%s", _("The Main File is not in the directory."));
error_dialog.run ();
error_dialog.destroy ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]