Commit b1fa7911 authored by Andrew Walton's avatar Andrew Walton Committed by Andrew Walton

reviewed by: Cosimo Cecchi

2008-05-05  A. Walton  <awalton@gnome.org>

	reviewed by: Cosimo Cecchi

	* libnautilus-private/nautilus-module.c (nautilus_module_load):
	* src/file-manager/fm-ditem-page.c (save_entry):
	* src/nautilus-autorun-software.c (autorun):
	Fixes build on toolchains with -Wformat enabled. 
	Closes bug #531562.


svn path=/trunk/; revision=14140
parent 817bc16f
2008-05-05 A. Walton <awalton@gnome.org>
reviewed by: Cosimo Cecchi
* libnautilus-private/nautilus-module.c (nautilus_module_load):
* src/file-manager/fm-ditem-page.c (save_entry):
* src/nautilus-autorun-software.c (autorun):
Fixes build on toolchains with -Wformat enabled.
Closes bug #531562.
2008-05-05 A. Walton <awalton@gnome.org> 2008-05-05 A. Walton <awalton@gnome.org>
* src/nautilus-window-menus.c (action_about_nautilus_callback): * src/nautilus-window-menus.c (action_about_nautilus_callback):
......
...@@ -76,7 +76,7 @@ nautilus_module_load (GTypeModule *gmodule) ...@@ -76,7 +76,7 @@ nautilus_module_load (GTypeModule *gmodule)
module->library = g_module_open (module->path, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL); module->library = g_module_open (module->path, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
if (!module->library) { if (!module->library) {
g_warning (g_module_error ()); g_warning ("%s", g_module_error ());
return FALSE; return FALSE;
} }
...@@ -90,7 +90,7 @@ nautilus_module_load (GTypeModule *gmodule) ...@@ -90,7 +90,7 @@ nautilus_module_load (GTypeModule *gmodule)
"nautilus_module_list_types", "nautilus_module_list_types",
(gpointer *)&module->list_types)) { (gpointer *)&module->list_types)) {
g_warning (g_module_error ()); g_warning ("%s", g_module_error ());
g_module_close (module->library); g_module_close (module->library);
return FALSE; return FALSE;
......
...@@ -191,7 +191,7 @@ save_entry (GtkEntry *entry, GnomeDesktopItem *item) ...@@ -191,7 +191,7 @@ save_entry (GtkEntry *entry, GnomeDesktopItem *item)
error = NULL; error = NULL;
if (!gnome_desktop_item_save (item, NULL, TRUE, &error)) { if (!gnome_desktop_item_save (item, NULL, TRUE, &error)) {
g_warning (error->message); g_warning ("%s", error->message);
g_error_free (error); g_error_free (error);
} }
} }
......
...@@ -166,7 +166,7 @@ out: ...@@ -166,7 +166,7 @@ out:
GTK_MESSAGE_ERROR, GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK, GTK_BUTTONS_OK,
_("<big><b>Error autorunning software</b></big>")); _("<big><b>Error autorunning software</b></big>"));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), error_string); gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error_string);
gtk_dialog_run (GTK_DIALOG (dialog)); gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog); gtk_widget_destroy (dialog);
g_free (error_string); g_free (error_string);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment