[Xfce4-commits] <xfce4-panel:devel> Prepend Xfce before the type name in the XFCE_PANEL_DEFINE_TYPE macro, this allows us to use names like LauncherPlugin, but the gtkrc type name will be XfceLauncherPlugin. Removed some long type names from the code.

Nick Schermer nick at xfce.org
Tue Aug 11 20:30:36 CEST 2009


Updating branch refs/heads/devel
         to 51604d00398d28abe087b366881d195a0dc2e375 (commit)
       from 9416f3f32f2521bd310bc985fc280d82b3df0c27 (commit)

commit 51604d00398d28abe087b366881d195a0dc2e375
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Mar 20 10:34:05 2009 +0100

    Prepend Xfce before the type name in the XFCE_PANEL_DEFINE_TYPE
    macro, this allows us to use names like LauncherPlugin, but the
    gtkrc type name will be XfceLauncherPlugin. Removed some long
    type names from the code.

 libxfce4panel/libxfce4panel.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libxfce4panel/libxfce4panel.h b/libxfce4panel/libxfce4panel.h
index 8325593..519fbcc 100644
--- a/libxfce4panel/libxfce4panel.h
+++ b/libxfce4panel/libxfce4panel.h
@@ -80,7 +80,7 @@ G_BEGIN_DECLS
     \
     plugin_define_type_id = \
         g_type_module_register_type (type_module, TYPE_PARENT, \
-                                     #TypeName, &plugin_define_type_info, 0); \
+                                     "Xfce" #TypeName, &plugin_define_type_info, 0); \
     \
     type_name##_type = plugin_define_type_id; \
   }



More information about the Xfce4-commits mailing list