Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel QuiƱones <manuq@laptop.org>2013-02-14 09:46:05 (GMT)
committer Ajay Garg <ajay@activitycentral.com>2013-03-09 11:26:18 (GMT)
commitc9b5c77561cf5852a082f7d9296e7f519dbc5bcb (patch)
tree812381d4f6257e56a50862eb097276c3b8db057f
parent877a1121f908d1f86b4d051aa6d1cc4e23847006 (diff)
ObjectChooser: make ObjectChooser transient for the parent window
There are two set-transient-for for methods: one that expects the window and parent parameter to be of type GtkWindow [1] and one that expects them to be of type GdkWindow [2]. The parent window we get for the object chooser is of type GdkWindow as we use GdkX11.X11Window.foreign_new_for_display to construct it from the xid passed from the toolkit. This patch changes the code to use gdk_window_set_transient_for in this case. [1] http://developer.gnome.org/gtk3/3.4/GtkWindow.html#gtk-window-set-transient-for [2] http://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-set-transient-for Signed-off-by: Manuel QuiƱones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> Signed-off-by: Ajay Garg <ajay@activitycentral.com>
-rw-r--r--src/jarabe/journal/objectchooser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jarabe/journal/objectchooser.py b/src/jarabe/journal/objectchooser.py
index b443058..ccee840 100644
--- a/src/jarabe/journal/objectchooser.py
+++ b/src/jarabe/journal/objectchooser.py
@@ -107,7 +107,7 @@ class ObjectChooser(Gtk.Window):
self._toolbar.set_what_filter(what_filter)
def __realize_cb(self, chooser, parent):
- self.set_transient_for(parent)
+ self.get_window().set_transient_for(parent)
# TODO: Should we disconnect the signal here?
def __window_closed_cb(self, screen, window, parent):