Fix suggestions in application plugin, threading not working though

This commit is contained in:
Michael Webster 2013-03-07 22:18:41 -05:00
parent bb5a90b943
commit a47e17dfbf
2 changed files with 7 additions and 6 deletions

View File

@ -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()

View File

@ -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: