All pastes #38720 Raw Edit

Diff

public text v1 · immutable
#38720 ·published 2006-01-26 22:01 UTC
rendered paste body
Index: deskbar/ui/cuemiac/Cuemiac.py===================================================================RCS file: /cvs/gnome/deskbar-applet/deskbar/ui/cuemiac/Cuemiac.py,vretrieving revision 1.25diff -u -p -r1.25 Cuemiac.py--- deskbar/ui/cuemiac/Cuemiac.py	26 Jan 2006 21:22:35 -0000	1.25+++ deskbar/ui/cuemiac/Cuemiac.py	26 Jan 2006 22:01:54 -0000@@ -627,7 +627,6 @@ class CuemiacUI (DeskbarUI): 			if self.entry.get_text().strip() == "": 				self.model.clear () 				self.scroll_win.hide ()-			self.popup.update_position () 			self.adjust_popup_size () 			self.popup.show () 			self.icon_entry.grab_focus ()Index: deskbar/ui/cuemiac/CuemiacAlignedWindow.py===================================================================RCS file: /cvs/gnome/deskbar-applet/deskbar/ui/cuemiac/CuemiacAlignedWindow.py,vretrieving revision 1.1diff -u -p -r1.1 CuemiacAlignedWindow.py--- deskbar/ui/cuemiac/CuemiacAlignedWindow.py	25 Jan 2006 01:31:26 -0000	1.1+++ deskbar/ui/cuemiac/CuemiacAlignedWindow.py	26 Jan 2006 22:01:54 -0000@@ -26,10 +26,9 @@ class CuemiacAlignedWindow (gtk.Window): 		self.widgetToAlignWith = widgetToAlignWith 		self.alignment = alignment 		-		self.realize()-		gtk.gdk.flush()--	def update_position (self):+		self.connect_after('realize', self.update_position)+		+	def update_position (self, widget): 		""" 		Calculates the position and moves the window to it. 		IMPORATNT: widgetToAlignWith should be realized!@@ -100,4 +99,4 @@ class CuemiacAlignedWindow (gtk.Window): 		self.move(x, y) 		self.set_gravity(gravity) 				-gobject.type_register (CuemiacAlignedWindow)\ No newline at end of file+gobject.type_register (CuemiacAlignedWindow)