[Xfce4-commits] <xfce4-panel:devel> Port window menu to new api. Resident because of wnck.

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


Updating branch refs/heads/devel
         to 2d37dbb817ba3a00227d7d041cc1fe99bcf63c6c (commit)
       from f80f41395c52a925039bf7a304b5b4426146f3f3 (commit)

commit 2d37dbb817ba3a00227d7d041cc1fe99bcf63c6c
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Mar 15 15:45:33 2009 +0100

    Port window menu to new api. Resident because of wnck.

 plugins/windowmenu/windowmenu.c |    6 ++----
 plugins/windowmenu/windowmenu.h |    4 +++-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/plugins/windowmenu/windowmenu.c b/plugins/windowmenu/windowmenu.c
index 12f280f..0d49525 100644
--- a/plugins/windowmenu/windowmenu.c
+++ b/plugins/windowmenu/windowmenu.c
@@ -105,10 +105,8 @@ static GtkWidget *window_menu_plugin_menu_new (XfceWindowMenuPlugin *plugin);
 
 
 
-/* define and register the plugin */
-G_DEFINE_TYPE (XfceWindowMenuPlugin, window_menu_plugin, XFCE_TYPE_PANEL_PLUGIN)
-
-XFCE_PANEL_PLUGIN_REGISTER_OBJECT (XFCE_TYPE_WINDOW_MENU_PLUGIN)
+/* define the plugin */
+XFCE_PANEL_DEFINE_PLUGIN_RESIDENT (XfceWindowMenuPlugin, window_menu_plugin)
 
 
 
diff --git a/plugins/windowmenu/windowmenu.h b/plugins/windowmenu/windowmenu.h
index 4a1d874..51c857d 100644
--- a/plugins/windowmenu/windowmenu.h
+++ b/plugins/windowmenu/windowmenu.h
@@ -34,7 +34,9 @@ typedef struct _XfceWindowMenuPlugin      XfceWindowMenuPlugin;
 #define XFCE_IS_WINDOW_MENU_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_WINDOW_MENU_PLUGIN))
 #define XFCE_WINDOW_MENU_PLUGIN_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_WINDOW_MENU_PLUGIN, XfceWindowMenuPluginClass))
 
-GType window_menu_plugin_get_type (void) G_GNUC_CONST;
+GType window_menu_plugin_get_type      (void) G_GNUC_CONST;
+
+void  window_menu_plugin_register_type (GTypeModule *type_module);
 
 G_END_DECLS
 



More information about the Xfce4-commits mailing list