[Xfce4-commits] <xfdesktop:master> Add some missing code from the GModule init function.

Nick Schermer noreply at xfce.org
Sat Aug 28 16:30:03 CEST 2010


Updating branch refs/heads/master
         to c6f7709a418f22426238aa22f38b1f2cb08df9a4 (commit)
       from fc6b8d3a8ded5dd79ca5a2991ae233ef4efc750a (commit)

commit c6f7709a418f22426238aa22f38b1f2cb08df9a4
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Aug 27 17:32:53 2010 +0200

    Add some missing code from the GModule init function.

 src/xfce-desktop-menu.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/xfce-desktop-menu.c b/src/xfce-desktop-menu.c
index e798813..74dc488 100644
--- a/src/xfce-desktop-menu.c
+++ b/src/xfce-desktop-menu.c
@@ -340,7 +340,7 @@ xfce_desktop_menu_new(const gchar *menu_file,
                            gboolean deferred)
 {
     XfceDesktopMenu *desktop_menu = g_new0(XfceDesktopMenu, 1);
-    
+
     desktop_menu->use_menu_icons = TRUE;
     desktop_menu->cache_menu_items = TRUE;  /* FIXME: hidden pref? */
     
@@ -357,7 +357,10 @@ xfce_desktop_menu_new(const gchar *menu_file,
             desktop_menu = NULL;
         }
     }
-    
+
+    garcon_set_environment("XFCE");
+
+    _deskmenu_icon_theme = gtk_icon_theme_get_default();
     g_signal_connect(G_OBJECT(_deskmenu_icon_theme), "changed",
                      G_CALLBACK(itheme_changed_cb), desktop_menu);
     



More information about the Xfce4-commits mailing list