[gnome-settings-daemon] Fix PluginName handling in new macro



commit c71a1945a62aec86276cad317e1b2f05e265475c
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 2 14:24:15 2013 -0500

    Fix PluginName handling in new macro
    
    When constructing a string literal, one needs to use
    stringification, not tokenization. This was causing
    PluginName## to appear in debug output.

 gnome-settings-daemon/gnome-settings-plugin.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-settings-daemon/gnome-settings-plugin.h b/gnome-settings-daemon/gnome-settings-plugin.h
index eb47615..1fbb2bb 100644
--- a/gnome-settings-daemon/gnome-settings-plugin.h
+++ b/gnome-settings-daemon/gnome-settings-plugin.h
@@ -97,7 +97,7 @@ plugin_name##_plugin_init (PluginName##Plugin *plugin)                         \
 {                                                                              \
         plugin->priv = G_TYPE_INSTANCE_GET_PRIVATE ((plugin),                  \
                 plugin_name##_plugin_get_type(), PluginName##PluginPrivate);   \
-        g_debug ("PluginName## initializing");                                 \
+        g_debug (#PluginName " initializing");                                 \
         plugin->priv->manager = plugin_name##_manager_new ();                  \
 }                                                                              \
                                                                                \



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