diff options
author | Manuel Quiñones <manuq@laptop.org> | 2013-02-14 09:46:05 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2013-02-14 12:05:06 (GMT) |
commit | f6ba32cef3bbbc66fbf85e069fbb08d6c311fca6 (patch) | |
tree | 33e48f465783ca973987d03498a12b69b7c6fb29 /src | |
parent | efb4d39736f86ce280cdbabf698de508b2227202 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/jarabe/journal/objectchooser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jarabe/journal/objectchooser.py b/src/jarabe/journal/objectchooser.py index e7da414..9315192 100644 --- a/src/jarabe/journal/objectchooser.py +++ b/src/jarabe/journal/objectchooser.py @@ -101,7 +101,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): |