diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 93c3659..dfde537 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -178,7 +178,8 @@ class SuggestionButton ( Gtk.Button ): self.iconName = iconName self.set_relief( Gtk.ReliefStyle.NONE ) self.set_size_request( -1, -1 ) - Align1 = Gtk.Alignment( 0, 0.5, 1.0, 0 ) + Align1 = Gtk.Alignment() + Align1.set( 0, 0.5, 1.0, 0 ) HBox1 = Gtk.HBox() labelBox = Gtk.VBox( False, 2 ) self.image = Gtk.Image() @@ -189,9 +190,9 @@ class SuggestionButton ( Gtk.Button ): self.label.set_ellipsize( Pango.EllipsizeMode.END ) self.label.set_alignment( 0.0, 1.0 ) self.label.show() - labelBox.pack_start( self.label ) + labelBox.pack_start( self.label, False, False, 0 ) labelBox.show() - HBox1.pack_start( labelBox ) + HBox1.pack_start( labelBox, False, False, 0 ) HBox1.show() Align1.add( HBox1 ) Align1.show() diff --git a/usr/lib/linuxmint/mintMenu/plugins/filemonitor.py b/usr/lib/linuxmint/mintMenu/plugins/filemonitor.py index bd0f124..e88def5 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/filemonitor.py +++ b/usr/lib/linuxmint/mintMenu/plugins/filemonitor.py @@ -2,7 +2,7 @@ import os import os.path import threading import time -import gobject +from gi.repository import GObject try: import pyinotify @@ -42,9 +42,9 @@ if hasInotify: # print event.path callback = self.callbacks[event.wd] if callback[1]: - gobject.idle_add( callback[0], callback[1] ) + GObject.idle_add( callback[0], callback[1] ) else: - gobject.idle_add( callback[0] ) + GObject.idle_add( callback[0] ) else: