[pitivi: 22/36] Hide the zoom buttons when previewing an audio file
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 22/36] Hide the zoom buttons when previewing an audio file
- Date: Sun, 22 May 2011 20:33:19 +0000 (UTC)
commit 56c4bbd9a4195666770105c8b6d6a5c8d3821de3
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Thu May 19 12:47:55 2011 -0400
Hide the zoom buttons when previewing an audio file
pitivi/ui/filechooserpreview.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/ui/filechooserpreview.py b/pitivi/ui/filechooserpreview.py
index 16d4b28..c01789c 100644
--- a/pitivi/ui/filechooserpreview.py
+++ b/pitivi/ui/filechooserpreview.py
@@ -210,8 +210,8 @@ class PreviewWidget(gtk.VBox, Loggable):
self.bbox.show()
self.b_action.set_sensitive(False)
self.seeker.set_sensitive(False)
- self.b_zoom_in.set_sensitive(True)
- self.b_zoom_out.set_sensitive(True)
+ self.b_zoom_in.show()
+ self.b_zoom_out.show()
desc = "<b>Image</b> <i>%dx%d pixel</i>"
desc = desc % (pixbuf_w, pixbuf_h)
self.description = desc
@@ -229,8 +229,8 @@ class PreviewWidget(gtk.VBox, Loggable):
self.bbox.show()
self.b_action.set_sensitive(True)
self.seeker.set_sensitive(True)
- self.b_zoom_in.set_sensitive(True)
- self.b_zoom_out.set_sensitive(True)
+ self.b_zoom_in.show()
+ self.b_zoom_out.show()
desc = "<b>Width/Height</b>: <i>%dx%d</i>\n" + "<b>Duration</b>: %s \n"
desc = desc % (video.par*video.width, video.height, duration)
self.description = desc
@@ -252,8 +252,8 @@ class PreviewWidget(gtk.VBox, Loggable):
self.player.set_property("video-sink", self.__fakesink)
self.player.set_state(gst.STATE_PAUSED)
self.b_action.set_sensitive(True)
- self.b_zoom_in.set_sensitive(False)
- self.b_zoom_out.set_sensitive(False)
+ self.b_zoom_in.hide()
+ self.b_zoom_out.hide()
self.bbox.show()
def show_error(self, uri):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]