[libpeas] Avoid a format string warning



commit 7a5c3ebc1276b45e9e85d158642d291c9a571bde
Author: Garrett Regier <garrettregier gmail com>
Date:   Mon Jul 18 17:23:00 2011 -0700

    Avoid a format string warning

 .../helloworld/peasdemo-hello-world-configurable.c |    4 ++--
 .../helloworld/peasdemo-hello-world-plugin.c       |    8 ++++----
 peas-demo/plugins/secondtime/second-time.c         |    8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/peas-demo/plugins/helloworld/peasdemo-hello-world-configurable.c b/peas-demo/plugins/helloworld/peasdemo-hello-world-configurable.c
index ff4209f..05302d8 100644
--- a/peas-demo/plugins/helloworld/peasdemo-hello-world-configurable.c
+++ b/peas-demo/plugins/helloworld/peasdemo-hello-world-configurable.c
@@ -45,13 +45,13 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (PeasDemoHelloWorldConfigurable,
 static void
 peasdemo_hello_world_configurable_init (PeasDemoHelloWorldConfigurable *plugin)
 {
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 }
 
 static GtkWidget *
 peasdemo_hello_world_configurable_create_configure_widget (PeasGtkConfigurable *configurable)
 {
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 
   return gtk_label_new ("This is a configuration dialog for the HelloWorld plugin.");
 }
diff --git a/peas-demo/plugins/helloworld/peasdemo-hello-world-plugin.c b/peas-demo/plugins/helloworld/peasdemo-hello-world-plugin.c
index 24d5fe0..b287d8f 100644
--- a/peas-demo/plugins/helloworld/peasdemo-hello-world-plugin.c
+++ b/peas-demo/plugins/helloworld/peasdemo-hello-world-plugin.c
@@ -92,7 +92,7 @@ peasdemo_hello_world_plugin_get_property (GObject    *object,
 static void
 peasdemo_hello_world_plugin_init (PeasDemoHelloWorldPlugin *plugin)
 {
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 }
 
 static void
@@ -100,7 +100,7 @@ peasdemo_hello_world_plugin_finalize (GObject *object)
 {
   PeasDemoHelloWorldPlugin *plugin = PEASDEMO_HELLO_WORLD_PLUGIN (object);
 
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 
   g_object_unref (plugin->label);
   g_object_unref (plugin->window);
@@ -119,7 +119,7 @@ peasdemo_hello_world_plugin_activate (PeasActivatable *activatable)
 {
   PeasDemoHelloWorldPlugin *plugin = PEASDEMO_HELLO_WORLD_PLUGIN (activatable);
 
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 
   plugin->label = gtk_label_new ("Hello World!");
   gtk_box_pack_start (get_box (plugin->window), plugin->label, 1, 1, 0);
@@ -132,7 +132,7 @@ peasdemo_hello_world_plugin_deactivate (PeasActivatable *activatable)
 {
   PeasDemoHelloWorldPlugin *plugin = PEASDEMO_HELLO_WORLD_PLUGIN (activatable);
 
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 
   gtk_container_remove (GTK_CONTAINER (get_box (plugin->window)), plugin->label);
 }
diff --git a/peas-demo/plugins/secondtime/second-time.c b/peas-demo/plugins/secondtime/second-time.c
index 8a8faaa..6ad56fe 100644
--- a/peas-demo/plugins/secondtime/second-time.c
+++ b/peas-demo/plugins/secondtime/second-time.c
@@ -90,7 +90,7 @@ peasdemo_second_time_get_property (GObject    *object,
 static void
 peasdemo_second_time_init (PeasDemoSecondTime *plugin)
 {
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 }
 
 static void
@@ -98,7 +98,7 @@ peasdemo_second_time_finalize (GObject *object)
 {
   PeasDemoSecondTime *plugin = PEASDEMO_SECOND_TIME (object);
 
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 
   g_object_unref (plugin->label);
   g_object_unref (plugin->window);
@@ -117,7 +117,7 @@ peasdemo_second_time_activate (PeasActivatable *activatable)
 {
   PeasDemoSecondTime *plugin = PEASDEMO_SECOND_TIME (activatable);
 
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 
   plugin->label = gtk_label_new ("A second time!");
   gtk_box_pack_start (get_box (plugin->window), plugin->label, 1, 1, 0);
@@ -130,7 +130,7 @@ peasdemo_second_time_deactivate (PeasActivatable *activatable)
 {
   PeasDemoSecondTime *plugin = PEASDEMO_SECOND_TIME (activatable);
 
-  g_debug (G_STRFUNC);
+  g_debug ("%s", G_STRFUNC);
 
   gtk_container_remove (GTK_CONTAINER (get_box (plugin->window)), plugin->label);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]