[pitivi] transitions: Prevent infobar from being stuck in the "shown" state with GTK 3.10
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] transitions: Prevent infobar from being stuck in the "shown" state with GTK 3.10
- Date: Sun, 29 Sep 2013 19:15:05 +0000 (UTC)
commit 875da93d3047d8922b6b4eededb68f3e5a414f23
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Sun Sep 29 14:06:54 2013 -0400
transitions: Prevent infobar from being stuck in the "shown" state with GTK 3.10
pitivi/transitions.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/transitions.py b/pitivi/transitions.py
index 07d3802..08f7aab 100644
--- a/pitivi/transitions.py
+++ b/pitivi/transitions.py
@@ -98,7 +98,6 @@ class TransitionsListWidget(Signallable, Gtk.VBox, Loggable):
"same layer. Click the transition on the timeline to change "
"the transition type."))
self.infobar.add(txtlabel)
- self.infobar.show_all()
self.storemodel = Gtk.ListStore(GES.Asset, str, str, GdkPixbuf.Pixbuf)
@@ -138,7 +137,7 @@ class TransitionsListWidget(Signallable, Gtk.VBox, Loggable):
self.modelFilter = self.storemodel.filter_new()
self.iconview.set_model(self.modelFilter)
- self.infobar.show()
+ self.infobar.show_all()
self.iconview_scrollwin.show_all()
self.iconview.hide()
self.props_widgets.set_sensitive(False)
@@ -269,10 +268,13 @@ class TransitionsListWidget(Signallable, Gtk.VBox, Loggable):
self.props_widgets.set_sensitive(True)
self.iconview.show_all()
self.props_widgets.show_all()
- self.infobar.hide()
self.searchbar.show_all()
self.selectTransition(transition_asset)
self.app.gui.switchContextTab("transitions")
+ # We REALLY want the infobar to be hidden as space is really constrained
+ # and yet GTK 3.10 seems to be racy in showing/hiding infobars, so
+ # this must happen *after* the tab has been made visible/switched to:
+ self.infobar.hide()
def selectTransition(self, transition_asset):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]