From edbfda176457e6224b35f08409b9ed6706389377 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Fri, 8 Mar 2013 11:21:26 -0500 Subject: [PATCH] Make favorites separators removeable --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index e68a282..c363e62 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -218,8 +218,8 @@ class pluginclass( object ): toButton = TargetEntry( "text/uri-list", 0, TARGET_TYPE_TEXT ) TARGET_TYPE_FAV = 81 array = TargetEntry * 3 - toFav = array( ( "FAVORITES", Gtk.TargetFlags.SAME_APP, TARGET_TYPE_FAV ), ( "text/plain", 0, 100 ), ( "text/uri-list", 0, 101 ) ) - fromFav = TargetEntry( "FAVORITES", Gtk.TargetFlags.SAME_APP, TARGET_TYPE_FAV ) + toFav = array( ( "FAVORITES", Gtk.TargetFlags.SAME_APP, 81 ), ( "text/plain", 0, 100 ), ( "text/uri-list", 0, 101 ) ) + fromFav = TargetEntry( "FAVORITES", Gtk.TargetFlags.SAME_APP, 81 ) @print_timing def __init__( self, mintMenuWin, toggleButton, de ): @@ -1336,12 +1336,16 @@ class pluginclass( object ): separator = Gtk.HSeparator() #separator.add( gtk.HSeparator() ) separator.set_size_request( -1, 20 ) - separator.connect( "button_release_event", self.favPopup ) separator.type = "separator" self.mintMenuWin.SetPaneColors( [ separator ] ) separator.show_all() - return separator + box = Gtk.EventBox() + box.type = "separator" + box.add(separator) + box.connect( "button_release_event", self.favPopup ) + box.show_all() + return box def favoritesBuildLauncher( self, location ): try: