gnome-panel r11469 - in trunk: applets/clock applets/fish applets/notification_area gnome-panel
- From: fcrozat svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-panel r11469 - in trunk: applets/clock applets/fish applets/notification_area gnome-panel
- Date: Wed, 21 Jan 2009 12:53:51 +0000 (UTC)
Author: fcrozat
Date: Wed Jan 21 12:53:50 2009
New Revision: 11469
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11469&view=rev
Log:
Fix format security warnings.
Modified:
trunk/applets/clock/ChangeLog
trunk/applets/clock/clock-location-tile.c
trunk/applets/clock/clock.c
trunk/applets/clock/gnome-clock-applet-mechanism.c
trunk/applets/fish/ChangeLog
trunk/applets/fish/fish.c
trunk/applets/notification_area/ChangeLog
trunk/applets/notification_area/main.c
trunk/gnome-panel/ChangeLog
trunk/gnome-panel/panel-applet-frame.c
trunk/gnome-panel/panel.c
Modified: trunk/applets/clock/clock-location-tile.c
==============================================================================
--- trunk/applets/clock/clock-location-tile.c (original)
+++ trunk/applets/clock/clock-location-tile.c Wed Jan 21 12:53:50 2009
@@ -181,7 +181,7 @@
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
_("Failed to set the system timezone"));
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), error->message);
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error->message);
g_signal_connect (dialog, "response",
G_CALLBACK (gtk_widget_destroy), NULL);
gtk_window_present (GTK_WINDOW (dialog));
Modified: trunk/applets/clock/clock.c
==============================================================================
--- trunk/applets/clock/clock.c (original)
+++ trunk/applets/clock/clock.c Wed Jan 21 12:53:50 2009
@@ -1694,7 +1694,7 @@
GTK_BUTTONS_OK,
_("Failed to set the system time"));
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), error->message);
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error->message);
g_signal_connect (dialog, "response",
G_CALLBACK (gtk_widget_destroy), NULL);
gtk_window_present (GTK_WINDOW (dialog));
Modified: trunk/applets/clock/gnome-clock-applet-mechanism.c
==============================================================================
--- trunk/applets/clock/gnome-clock-applet-mechanism.c (original)
+++ trunk/applets/clock/gnome-clock-applet-mechanism.c Wed Jan 21 12:53:50 2009
@@ -493,7 +493,7 @@
code = GNOME_CLOCK_APPLET_MECHANISM_ERROR_GENERAL;
error2 = g_error_new (GNOME_CLOCK_APPLET_MECHANISM_ERROR,
- code, error->message);
+ code, "%s", error->message);
g_error_free (error);
Modified: trunk/applets/fish/fish.c
==============================================================================
--- trunk/applets/fish/fish.c (original)
+++ trunk/applets/fish/fish.c Wed Jan 21 12:53:50 2009
@@ -173,7 +173,7 @@
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
- primary);
+ "%s", primary);
gtk_message_dialog_format_secondary_text (
GTK_MESSAGE_DIALOG (dialog),
@@ -667,7 +667,7 @@
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
- message);
+ "%s", message);
g_signal_connect (dialog, "response",
G_CALLBACK (gtk_widget_destroy),
Modified: trunk/applets/notification_area/main.c
==============================================================================
--- trunk/applets/notification_area/main.c (original)
+++ trunk/applets/notification_area/main.c Wed Jan 21 12:53:50 2009
@@ -96,7 +96,7 @@
NA_HELP_DOC);
dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
- primary);
+ "%s", primary);
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s", error->message);
Modified: trunk/gnome-panel/panel-applet-frame.c
==============================================================================
--- trunk/gnome-panel/panel-applet-frame.c (original)
+++ trunk/gnome-panel/panel-applet-frame.c Wed Jan 21 12:53:50 2009
@@ -1055,7 +1055,7 @@
dialog = gtk_message_dialog_new (NULL, 0,
locked_down ? GTK_MESSAGE_INFO : GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
- problem_txt);
+ "%s", problem_txt);
g_free (problem_txt);
if (locked_down) {
Modified: trunk/gnome-panel/panel.c
==============================================================================
--- trunk/gnome-panel/panel.c (original)
+++ trunk/gnome-panel/panel.c Wed Jan 21 12:53:50 2009
@@ -1313,10 +1313,10 @@
GTK_DIALOG_MODAL,
GTK_MESSAGE_WARNING,
GTK_BUTTONS_NONE,
- text1);
+ "%s", text1);
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
- text2);
+ "%s", text2);
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_DELETE, GTK_RESPONSE_OK,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]