diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py
index e4160b6..a929932 100755
--- a/usr/lib/linuxmint/mintMenu/mintMenu.py
+++ b/usr/lib/linuxmint/mintMenu/mintMenu.py
@@ -316,9 +316,9 @@ class MainWindow( object ):
heading.add( Align1 )
heading.show()
- VBox1.pack_start( heading, False )
+ VBox1.pack_start( heading, False, False, 0 )
VBox1.show()
- MyPlugin.container = VBox1
+ #MyPlugin.container = VBox1
#Add plugin to Plugin Box under heading button
MyPlugin.content_holder.reparent( VBox1 )
@@ -365,7 +365,7 @@ class MainWindow( object ):
Image1.show()
#ImageBox.add( Image1 )
- Align1 = Gtk.Alignment.new()
+ Align1 = Gtk.Alignment.new(0, 0, 0, 0)
Align1.set_padding( 0, 0, 6, 6 )
Align1.add(Image1)
ImageBox.add(Align1)
@@ -392,6 +392,7 @@ class MainWindow( object ):
def SetHeadingStyle( self, items ):
+ return
for item in items:
if item not in self.headingsToColor:
self.headingsToColor.append( item )
@@ -486,14 +487,28 @@ class MainWindow( object ):
def onButtonPress( self, widget, event ):
# Check if the pointer is within the menu, else hide the menu
+
winatptr = Gdk.window_at_pointer()
+ widget_win = widget.get_window()
+
+ print winatptr
+ print widget_win
+
+ if winatptr[0] != widget_win:
+ self.hide(True)
+
+ return True
+
+
if winatptr:
win = winatptr[0]
while win:
+ print "xx"
+ print self.window.window
if win == self.window.window:
break
- win = win.get_parent()
+ win = win.get_toplevels()
if not win:
self.hide( True )
else:
@@ -707,14 +722,15 @@ class MenuWin( object ):
self.sizeButton()
def bind_hot_key (self):
- try:
- # Binding menu to hotkey
- print "Binding to Hot Key: " + self.hotkeyText
- bind_key( self.hotkeyText, self.onBindingPress )
- except Exception, cause:
- print "** WARNING ** - Menu Hotkey Binding Error"
- print "Error Report :\n", str(cause)
- pass
+ pass
+ # try:
+ # # Binding menu to hotkey
+ # print "Binding to Hot Key: " + self.hotkeyText
+ # bind_key( self.hotkeyText, self.onBindingPress )
+ # except Exception, cause:
+ # print "** WARNING ** - Menu Hotkey Binding Error"
+ # print "Error Report :\n", str(cause)
+ # pass
def sizeButton( self ):
if self.hideIcon:
diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.glade b/usr/lib/linuxmint/mintMenu/plugins/applications.glade
index 20f99e1..dfda8ba 100644
--- a/usr/lib/linuxmint/mintMenu/plugins/applications.glade
+++ b/usr/lib/linuxmint/mintMenu/plugins/applications.glade
@@ -1,96 +1,111 @@
-
+
+
+
+
-
+
5
end
1
-
+
False
False
@@ -98,103 +113,100 @@
-
+
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
queue
none
-
+
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
-
+
1
-
+
-
+
-
- tab
-
-
+
True
-
+
True
True
-
+
True
0
15
10
<span weight="bold">All Applications</span>
True
-
+
1
-
+
True
True
True
False
none
-
+
True
1
0
0
10
-
+
True
2
-
+
True
_Favorites
True
-
+
0
-
+
True
5
gtk-go-forward
-
+
1
-
+
-
+
-
+
5
end
1
-
+
False
False
@@ -202,35 +214,35 @@
-
+
True
-
+
True
True
never
automatic
-
+
True
none
-
+
True
-
+
-
+
-
+
0
-
+
True
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
-
+
False
False
@@ -239,60 +251,54 @@
-
+
True
False
True
never
automatic
-
+
True
none
-
+
True
-
+
-
+
-
+
2
-
+
1
-
-
- 1
-
+
-
+
-
- tab
-
-
+
0
-
+
227
30
True
-
+
True
<span weight="bold">Search:</span>
True
-
+
False
False
@@ -301,7 +307,7 @@
-
+
25
True
True
@@ -309,14 +315,14 @@
True
True
True
-
-
+
+
1
-
+
28
True
True
@@ -325,18 +331,18 @@
False
none
False
-
+
-
+
True
True
True
True
gtk-find
1
-
+
-
+
False
False
@@ -344,7 +350,7 @@
2
-
+
False
False
@@ -352,18 +358,18 @@
1
-
+
-
+
-
-
-
-
-
+
+
diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.glade.old b/usr/lib/linuxmint/mintMenu/plugins/applications.glade.old
new file mode 100644
index 0000000..20f99e1
--- /dev/null
+++ b/usr/lib/linuxmint/mintMenu/plugins/applications.glade.old
@@ -0,0 +1,369 @@
+
+
+
+
+
+ 169
+ 227
+ mouse
+ static
+
+
+
+ True
+
+
+ True
+
+
+ True
+ False
+ False
+ 14
+
+
+ True
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+
+
+ True
+ True
+
+
+ True
+ 0
+ 15
+ 10
+ <span weight="bold">Favorites</span>
+ True
+
+
+ 1
+
+
+
+
+ True
+ True
+ True
+ False
+ none
+
+
+ True
+ 1
+ 0
+ 0
+ 10
+
+
+ True
+ 2
+
+
+ True
+ All _Applications
+ True
+
+
+ 0
+
+
+
+
+ True
+ 5
+ gtk-go-forward
+
+
+ 1
+
+
+
+
+
+
+
+
+ 5
+ end
+ 1
+
+
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ queue
+ none
+
+
+ True
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+ tab
+
+
+
+
+ True
+
+
+ True
+ True
+
+
+ True
+ 0
+ 15
+ 10
+ <span weight="bold">All Applications</span>
+ True
+
+
+ 1
+
+
+
+
+ True
+ True
+ True
+ False
+ none
+
+
+ True
+ 1
+ 0
+ 0
+ 10
+
+
+ True
+ 2
+
+
+ True
+ _Favorites
+ True
+
+
+ 0
+
+
+
+
+ True
+ 5
+ gtk-go-forward
+
+
+ 1
+
+
+
+
+
+
+
+
+ 5
+ end
+ 1
+
+
+
+
+ False
+ False
+ 0
+
+
+
+
+ True
+
+
+ True
+ True
+ never
+ automatic
+
+
+ True
+ none
+
+
+ True
+
+
+
+
+
+
+ 0
+
+
+
+
+ True
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+
+
+ False
+ False
+ 5
+ 1
+
+
+
+
+ True
+ False
+ True
+ never
+ automatic
+
+
+ True
+ none
+
+
+ True
+
+
+
+
+
+
+ 2
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+
+ tab
+
+
+
+
+ 0
+
+
+
+
+ 227
+ 30
+ True
+
+
+ True
+ <span weight="bold">Search:</span>
+ True
+
+
+ False
+ False
+ 5
+ 0
+
+
+
+
+ 25
+ True
+ True
+ True
+ True
+ True
+ True
+
+
+
+ 1
+
+
+
+
+ 28
+ True
+ True
+ True
+ True
+ False
+ none
+ False
+
+
+
+ True
+ True
+ True
+ True
+ gtk-find
+ 1
+
+
+
+
+ False
+ False
+ end
+ 2
+
+
+
+
+ False
+ False
+ end
+ 1
+
+
+
+
+
+
+
+
+
+
+
diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py
index a785550..376a1db 100755
--- a/usr/lib/linuxmint/mintMenu/plugins/applications.py
+++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py
@@ -1,8 +1,10 @@
#!/usr/bin/env python
-import gtk
-import gtk.glade
-import gobject
+import gi
+gi.require_version("Gtk", "2.0")
+
+from gi.repository import Gtk, GObject, Pango, Gdk
+
import os
import mateconf
import fnmatch
@@ -26,7 +28,7 @@ import matemenu
from user import home
-gtk.gdk.threads_init()
+GObject.threads_init()
# i18n
gettext.install("mintmenu", "/usr/share/linuxmint/locale")
@@ -165,22 +167,22 @@ class Menu:
-class SuggestionButton ( gtk.Button ):
+class SuggestionButton ( Gtk.Button ):
def __init__( self, iconName, iconSize, label ):
- gtk.Button.__init__( self )
+ Gtk.Button.__init__( self )
self.iconName = iconName
- self.set_relief( gtk.RELIEF_NONE )
+ self.set_relief( Gtk.ReliefStyle.NONE )
self.set_size_request( -1, -1 )
- Align1 = gtk.Alignment( 0, 0.5, 1.0, 0 )
- HBox1 = gtk.HBox()
- labelBox = gtk.VBox( False, 2 )
- self.image = gtk.Image()
+ Align1 = Gtk.Alignment( 0, 0.5, 1.0, 0 )
+ HBox1 = Gtk.HBox()
+ labelBox = Gtk.VBox( False, 2 )
+ self.image = Gtk.Image()
self.image.set_from_stock( self.iconName, iconSize )
self.image.show()
HBox1.pack_start( self.image, False, False, 5 )
- self.label = gtk.Label()
- self.label.set_ellipsize( pango.ELLIPSIZE_END )
+ self.label = Gtk.Label()
+ self.label.set_ellipsize( Pango.EllipsizeMode.END )
self.label.set_alignment( 0.0, 1.0 )
self.label.show()
labelBox.pack_start( self.label )
@@ -205,8 +207,8 @@ class pluginclass( object ):
TARGET_TYPE_TEXT = 80
toButton = [ ( "text/uri-list", 0, TARGET_TYPE_TEXT ) ]
TARGET_TYPE_FAV = 81
- toFav = [ ( "FAVORITES", gtk.TARGET_SAME_APP, TARGET_TYPE_FAV ), ( "text/plain", 0, 100 ), ( "text/uri-list", 0, 101 ) ]
- fromFav = [ ( "FAVORITES", gtk.TARGET_SAME_APP, TARGET_TYPE_FAV ) ]
+ toFav = [ ( "FAVORITES", Gtk.TargetFlags.SAME_APP, TARGET_TYPE_FAV ), ( "text/plain", 0, 100 ), ( "text/uri-list", 0, 101 ) ]
+ fromFav = [ ( "FAVORITES", Gtk.TargetFlags.SAME_APP, TARGET_TYPE_FAV ) ]
@print_timing
def __init__( self, mintMenuWin, toggleButton, de ):
@@ -217,44 +219,45 @@ class pluginclass( object ):
self.toggleButton = toggleButton
self.de = de
+ builder = Gtk.Builder()
# The Glade file for the plugin
- self.gladefile = os.path.join( os.path.dirname( __file__ ), "applications.glade" )
+ builder.add_from_file (os.path.join( os.path.dirname( __file__ ), "applications.glade" ))
# Read GLADE file
- self.wTree = gtk.glade.XML( self.gladefile, "mainWindow" )
- self.searchEntry = self.wTree.get_widget( "searchEntry" )
- self.searchButton = self.wTree.get_widget( "searchButton" )
- self.showAllAppsButton = self.wTree.get_widget( "showAllAppsButton" )
- self.showFavoritesButton = self.wTree.get_widget( "showFavoritesButton" )
- self.applicationsBox = self.wTree.get_widget( "applicationsBox" )
- self.categoriesBox = self.wTree.get_widget( "categoriesBox" )
- self.favoritesBox = self.wTree.get_widget( "favoritesBox" )
- self.applicationsScrolledWindow = self.wTree.get_widget( "applicationsScrolledWindow" )
+ self.wTree = builder.get_object( "mainWindow" )
+ self.searchEntry = builder.get_object( "searchEntry" )
+ self.searchButton = builder.get_object( "searchButton" )
+ self.showAllAppsButton = builder.get_object( "showAllAppsButton" )
+ self.showFavoritesButton = builder.get_object( "showFavoritesButton" )
+ self.applicationsBox = builder.get_object( "applicationsBox" )
+ self.categoriesBox = builder.get_object( "categoriesBox" )
+ self.favoritesBox = builder.get_object( "favoritesBox" )
+ self.applicationsScrolledWindow = builder.get_object( "applicationsScrolledWindow" )
#i18n
- self.wTree.get_widget("searchLabel").set_text("" + _("Search:") + "")
- self.wTree.get_widget("searchLabel").set_use_markup(True)
- self.wTree.get_widget("label6").set_text(_("Favorites"))
- self.wTree.get_widget("label3").set_text(_("Favorites"))
- self.wTree.get_widget("label7").set_text(_("All applications"))
- self.wTree.get_widget("label2").set_text(_("Applications"))
+ builder.get_object("searchLabel").set_text("" + _("Search:") + "")
+ builder.get_object("searchLabel").set_use_markup(True)
+ builder.get_object("label6").set_text(_("Favorites"))
+ builder.get_object("label3").set_text(_("Favorites"))
+ builder.get_object("label7").set_text(_("All applications"))
+ builder.get_object("label2").set_text(_("Applications"))
- self.mintMenuWin.SetHeadingStyle( [self.wTree.get_widget("label6"), self.wTree.get_widget("label2")] )
+ self.mintMenuWin.SetHeadingStyle( [builder.get_object("label6"), builder.get_object("label2")] )
self.numApps = 0
# These properties are NECESSARY to maintain consistency
# Set 'window' property for the plugin (Must be the root widget)
- self.window = self.wTree.get_widget( "mainWindow" )
+ self.window = builder.get_object( "mainWindow" )
# Set 'heading' property for plugin
self.heading = ""#_("Applications")
# This should be the first item added to the window in glade
- self.content_holder = self.wTree.get_widget( "Applications" )
+ self.content_holder = builder.get_object( "Applications" )
# Items to get custom colors
- self.itemstocolor = [ self.wTree.get_widget( "viewport1" ), self.wTree.get_widget( "viewport2" ), self.wTree.get_widget( "viewport3" ), self.wTree.get_widget( "notebook2" ) ]
+ self.itemstocolor = [ builder.get_object( "viewport1" ), builder.get_object( "viewport2" ), builder.get_object( "viewport3" ), builder.get_object( "notebook2" ) ]
# Unset all timers
self.filterTimer = None
@@ -263,7 +266,7 @@ class pluginclass( object ):
self.content_holder.connect( "key-press-event", self.keyPress )
self.favoritesBox.connect( "drag_data_received", self.ReceiveCallback )
- self.favoritesBox.drag_dest_set( gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT | gtk.DEST_DEFAULT_DROP, self.toButton, gtk.gdk.ACTION_COPY )
+ self.favoritesBox.drag_dest_set( Gtk.DestDefaults.MOTION | Gtk.DestDefaults.HIGHLIGHT | Gtk.DestDefaults.DROP, self.toButton, gtk.gdk.ACTION_COPY )
self.showFavoritesButton.connect( "drag_data_received", self.ReceiveCallback )
self.showFavoritesButton.drag_dest_set( gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT | gtk.DEST_DEFAULT_DROP, self.toButton, gtk.gdk.ACTION_COPY )
@@ -321,7 +324,7 @@ class pluginclass( object ):
self.current_suggestion = None
self.get_panel()
- self.wTree.get_widget("searchButton").connect( "button-release-event", self.searchPopup )
+ builder.get_object("searchButton").connect( "button-release-event", self.searchPopup )
def refresh_apt_cache(self):
if self.useAPT:
@@ -580,34 +583,34 @@ class pluginclass( object ):
def StartFilter( self, widget, category ):
# if there is a timer for a different category running stop it
if self.filterTimer:
- gobject.source_remove( self.filterTimer )
- self.filterTimer = gobject.timeout_add( self.categoryhoverdelay, self.Filter, widget, category )
+ GObject.source_remove( self.filterTimer )
+ self.filterTimer = GObject.timeout_add( self.categoryhoverdelay, self.Filter, widget, category )
def StopFilter( self, widget ):
if self.filterTimer:
- gobject.source_remove( self.filterTimer )
+ GObject.source_remove( self.filterTimer )
self.filterTimer = None
def add_search_suggestions(self, text):
text = "%s" % text
- suggestionButton = SuggestionButton(gtk.STOCK_ADD, self.iconSize, "")
+ suggestionButton = SuggestionButton(Gtk.STOCK_ADD, self.iconSize, "")
suggestionButton.connect("clicked", self.search_google)
suggestionButton.set_text(_("Search Google for %s") % text)
suggestionButton.set_image("/usr/lib/linuxmint/mintMenu/search_engines/google.ico")
self.applicationsBox.add(suggestionButton)
self.suggestions.append(suggestionButton)
- suggestionButton = SuggestionButton(gtk.STOCK_ADD, self.iconSize, "")
+ suggestionButton = SuggestionButton(Gtk.STOCK_ADD, self.iconSize, "")
suggestionButton.connect("clicked", self.search_wikipedia)
suggestionButton.set_text(_("Search Wikipedia for %s") % text)
suggestionButton.set_image("/usr/lib/linuxmint/mintMenu/search_engines/wikipedia.ico")
self.applicationsBox.add(suggestionButton)
self.suggestions.append(suggestionButton)
- separator = gtk.EventBox()
- separator.add(gtk.HSeparator())
+ separator = Gtk.EventBox()
+ separator.add(Gtk.HSeparator())
separator.set_size_request(-1, 20)
separator.type = "separator"
self.mintMenuWin.SetPaneColors( [ separator ] )
@@ -615,14 +618,14 @@ class pluginclass( object ):
self.applicationsBox.add(separator)
self.suggestions.append(separator)
- suggestionButton = SuggestionButton(gtk.STOCK_ADD, self.iconSize, "")
+ suggestionButton = SuggestionButton(Gtk.STOCK_ADD, self.iconSize, "")
suggestionButton.connect("clicked", self.search_dictionary)
suggestionButton.set_text(_("Lookup %s in Dictionary") % text)
suggestionButton.set_image("/usr/lib/linuxmint/mintMenu/search_engines/dictionary.png")
self.applicationsBox.add(suggestionButton)
self.suggestions.append(suggestionButton)
- suggestionButton = SuggestionButton(gtk.STOCK_FIND, self.iconSize, "")
+ suggestionButton = SuggestionButton(Gtk.STOCK_FIND, self.iconSize, "")
suggestionButton.connect("clicked", self.Search)
suggestionButton.set_text(_("Search Computer for %s") % text)
self.applicationsBox.add(suggestionButton)
@@ -1641,7 +1644,7 @@ class pluginclass( object ):
sortedCategoryList.sort()
for item in sortedCategoryList:
- self.categoriesBox.pack_start( item[1], False )
+ self.categoriesBox.pack_start( item[1], False, False, 0 )
# Find added and removed applications add update the application list
@@ -1705,7 +1708,7 @@ class pluginclass( object ):
sortedApplicationList.sort()
for item in sortedApplicationList:
- self.applicationsBox.pack_start( item[1], False )
+ self.applicationsBox.pack_start( item[1], False, False, 0 )
self.rebuildLock = False
diff --git a/usr/lib/linuxmint/mintMenu/plugins/places.glade b/usr/lib/linuxmint/mintMenu/plugins/places.glade
index 1fd8153..f1801f6 100644
--- a/usr/lib/linuxmint/mintMenu/plugins/places.glade
+++ b/usr/lib/linuxmint/mintMenu/plugins/places.glade
@@ -1,56 +1,64 @@
-
+
-
-
+
+ False
+
-
+
True
+ False
-
+
True
True
automatic
automatic
-
-
-
+
+
+
-
+
True
+ False
none
-
+
True
+ False
-
+
True
+ False
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
2
-
+
+ True
+ True
0
-
+
True
+ False
start
-
+
False
False
1
-
+
-
+
-
+
-
+
-
-
+
+
diff --git a/usr/lib/linuxmint/mintMenu/plugins/places.glade.old b/usr/lib/linuxmint/mintMenu/plugins/places.glade.old
new file mode 100644
index 0000000..6a3f60a
--- /dev/null
+++ b/usr/lib/linuxmint/mintMenu/plugins/places.glade.old
@@ -0,0 +1,64 @@
+
+
+
+
+
+ False
+
+
+
+ True
+ False
+
+
+ True
+ True
+ automatic
+ automatic
+
+
+
+
+
+ True
+ False
+ none
+
+
+ True
+ False
+
+
+ True
+ False
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
+ 2
+
+
+ True
+ True
+ 0
+
+
+
+
+ True
+ False
+ start
+
+
+ False
+ False
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/usr/lib/linuxmint/mintMenu/plugins/places.py b/usr/lib/linuxmint/mintMenu/plugins/places.py
index 244dd53..04739c3 100755
--- a/usr/lib/linuxmint/mintMenu/plugins/places.py
+++ b/usr/lib/linuxmint/mintMenu/plugins/places.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-from gi.repository import Gtk
+from gi.repository import Gtk, Gio
import os
import string
import gettext
@@ -25,7 +25,7 @@ class pluginclass( object ):
# Read UI file
builder = Gtk.Builder()
- builder.add_from_file(os.path.join( os.path.dirname( __file__ ), "places.ui" ))
+ builder.add_from_file(os.path.join( os.path.dirname( __file__ ), "places.glade" ))
self.placesBtnHolder = builder.get_object( "places_button_holder" )
self.editableBtnHolder = builder.get_object( "editable_button_holder" )
@@ -104,7 +104,7 @@ class pluginclass( object ):
# Check default items
- self.showcomputer = self.settings.get_boolean( "places-show_computer" )
+ self.showcomputer = self.settings.get_boolean( "places-show-computer" )
self.showhomefolder = self.settings.get_boolean( "places-show-home-folder" )
self.shownetwork = self.settings.get_boolean( "places-show-network" )
self.showdesktop = self.settings.get_boolean( "places-show-desktop" )
@@ -119,10 +119,10 @@ class pluginclass( object ):
# Hide vertical dotted separator
self.hideseparator = self.settings.get_boolean( "places-hide-separator" )
# Plugin icon
- self.icon = self.settings_get_string( "places-icon" )
+ self.icon = self.settings.get_string( "places-icon" )
# Allow plugin to be minimized to the left plugin pane
- self.sticky = self.settings.get_boolean( "places-sticky", False )
- self.minimized = self.settings.get_boolean( "places-minimized", False )
+ self.sticky = self.settings.get_boolean( "places-sticky")
+ self.minimized = self.settings.get_boolean( "places-minimized")
def ClearAll(self):
for child in self.placesBtnHolder.get_children():
@@ -140,7 +140,7 @@ class pluginclass( object ):
else:
Button1.connect( "clicked", self.ButtonClicked, "xdg-open /" )
Button1.show()
- self.placesBtnHolder.pack_start( Button1, False, False )
+ self.placesBtnHolder.pack_start( Button1, False, False, 0)
self.mintMenuWin.setTooltip( Button1, _("Browse all local and remote disks and folders accessible from this computer") )
if ( self.showhomefolder == True ):
@@ -150,7 +150,7 @@ class pluginclass( object ):
else:
Button2.connect( "clicked", self.ButtonClicked, "xdg-open %s " % home )
Button2.show()
- self.placesBtnHolder.pack_start( Button2, False, False )
+ self.placesBtnHolder.pack_start( Button2, False, False, 0)
self.mintMenuWin.setTooltip( Button2, _("Open your personal folder") )
if ( self.shownetwork == True and self.de == "mate"):
@@ -165,7 +165,7 @@ class pluginclass( object ):
else:
Button3.connect( "clicked", self.ButtonClicked, "xdg-open network:" )
Button3.show()
- self.placesBtnHolder.pack_start( Button3, False, False )
+ self.placesBtnHolder.pack_start( Button3, False, False, 0)
self.mintMenuWin.setTooltip( Button3, _("Browse bookmarked and local network locations") )
if ( self.showdesktop == True ):
@@ -188,7 +188,7 @@ class pluginclass( object ):
else:
Button4.connect( "clicked", self.ButtonClicked, "xdg-open \"" + desktopDir + "\"")
Button4.show()
- self.placesBtnHolder.pack_start( Button4, False, False )
+ self.placesBtnHolder.pack_start( Button4, False, False, 0)
self.mintMenuWin.setTooltip( Button4, _("Browse items placed on the desktop") )
if ( self.showtrash == True ):
@@ -202,7 +202,7 @@ class pluginclass( object ):
self.trashButton.show()
self.trashButton.connect( "button-release-event", self.trashPopup )
self.refreshTrash()
- self.placesBtnHolder.pack_start( self.trashButton, False, False )
+ self.placesBtnHolder.pack_start( self.trashButton, False, False, 0)
self.mintMenuWin.setTooltip( self.trashButton, _("Browse deleted files") )
def do_custom_places( self ):
@@ -216,7 +216,7 @@ class pluginclass( object ):
currentbutton = easyButton( "folder", self.iconsize, [self.customnames[index]], -1, -1 )
currentbutton.connect( "clicked", self.ButtonClicked, command )
currentbutton.show()
- self.placesBtnHolder.pack_start( currentbutton, False, False )
+ self.placesBtnHolder.pack_start( currentbutton, False, False, 0)
def do_gtk_bookmarks( self ):
if self.showGTKBookmarks: