Remove panel and desktop shortcuts for Xfce

This commit is contained in:
Clement Lefebvre 2011-03-29 19:50:20 +01:00
parent f9e70737b1
commit 264b3fafe0

View File

@ -887,6 +887,7 @@ class pluginclass( object ):
removeFromFavMenuItem.connect( "activate", self.onFavoritesRemove, widget ) removeFromFavMenuItem.connect( "activate", self.onFavoritesRemove, widget )
propsMenuItem.connect( "activate", self.onPropsApp, widget) propsMenuItem.connect( "activate", self.onPropsApp, widget)
if self.de == "gnome":
mTree.get_widget("favoritesMenu").append(desktopMenuItem) mTree.get_widget("favoritesMenu").append(desktopMenuItem)
mTree.get_widget("favoritesMenu").append(panelMenuItem) mTree.get_widget("favoritesMenu").append(panelMenuItem)
mTree.get_widget("favoritesMenu").append(separator1) mTree.get_widget("favoritesMenu").append(separator1)
@ -939,9 +940,9 @@ class pluginclass( object ):
separator3 = gtk.SeparatorMenuItem() separator3 = gtk.SeparatorMenuItem()
propsMenuItem = gtk.MenuItem(_("Edit properties")) propsMenuItem = gtk.MenuItem(_("Edit properties"))
if self.de == "gnome":
mTree.get_widget("applicationsMenu").append(desktopMenuItem) mTree.get_widget("applicationsMenu").append(desktopMenuItem)
mTree.get_widget("applicationsMenu").append(panelMenuItem) mTree.get_widget("applicationsMenu").append(panelMenuItem)
mTree.get_widget("applicationsMenu").append(separator1) mTree.get_widget("applicationsMenu").append(separator1)
mTree.get_widget("applicationsMenu").append(favoriteMenuItem) mTree.get_widget("applicationsMenu").append(favoriteMenuItem)