[pitivi: 1/27] Make detachable components "utility" window types so that they show up above the timeline



commit 5c851bbd11395d2d354ba3df42e4a0e97452344a
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Thu Nov 25 12:31:43 2010 -0500

    Make detachable components "utility" window types so that they show up above the timeline

 pitivi/ui/basetabs.py |    2 ++
 pitivi/ui/viewer.py   |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/basetabs.py b/pitivi/ui/basetabs.py
index 6cfcf0e..25b4910 100644
--- a/pitivi/ui/basetabs.py
+++ b/pitivi/ui/basetabs.py
@@ -68,6 +68,8 @@ class BaseTabs(gtk.Notebook):
         original_position = self.child_get_property(child, "position")
         label = self.child_get_property(child, "tab-label")
         window = gtk.Window()
+        window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_UTILITY)
+
         window.set_title(label)
         window.set_default_size(600, 400)
         window.connect("destroy", self._detachedComponentWindowDestroyCb,
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index badf716..674ae2e 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -516,6 +516,7 @@ class PitiviViewer(gtk.VBox, Loggable):
         self.remove(self.slider)
         self.external_vbox.pack_end(self.slider, False, False)
         self.external_vbox.pack_end(self.buttons, False, False)
+        self.external_window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_UTILITY)
         self.external_window.show()
         self.target = self.external
         # if we are playing, switch output immediately



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]