From d07fe6c5c698f31810a866dc347854d393819ea6 Mon Sep 17 00:00:00 2001 From: eblade Date: Sun, 26 Oct 2008 05:39:43 -0400 Subject: [PATCH] move re-parenting code back into windows-only topify_window() function, as it is not 100% system independent (more like 99%) --- pyfpdb/Hud.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index a2c7ab63..42579eac 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -93,11 +93,6 @@ class Hud: if os.name == 'nt': self.topify_window(self.main_window) -# set as child of poker table - window.parentgdkhandle = gtk.gdk.window_foreign_new(long(self.table.number)) - self.main_window.gdkhandle = gtk.gdk.window_foreign_new(w[0]) - self.main_window.gdkhandle.set_transient_for(window.parentgdkhandle) - def on_button_press(self, widget, event): if event.button == 3: widget.popup(None, None, None, event.button, event.time) @@ -249,9 +244,9 @@ class Hud: for w in tl_windows: if w[1] == unique_name: #win32gui.ShowWindow(w[0], win32con.SW_HIDE) - #window.parentgdkhandle = gtk.gdk.window_foreign_new(long(self.table.number)) - #self.main_window.gdkhandle = gtk.gdk.window_foreign_new(w[0]) - #self.main_window.gdkhandle.set_transient_for(window.parentgdkhandle) + window.parentgdkhandle = gtk.gdk.window_foreign_new(long(self.table.number)) + self.main_window.gdkhandle = gtk.gdk.window_foreign_new(w[0]) + self.main_window.gdkhandle.set_transient_for(window.parentgdkhandle) #win32gui.ShowWindow(w[0], win32con.SW_SHOW) style = win32gui.GetWindowLong(self.table.number, win32con.GWL_EXSTYLE)