[pitivi: 15/16] sourcelist: Add a button to hide the error infobar
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 15/16] sourcelist: Add a button to hide the error infobar
- Date: Tue, 22 Mar 2011 10:36:16 +0000 (UTC)
commit bbd187172724598e9ee79e36dafe7a29df5e60b3
Author: Thibault Saunier <thibault saunier collabora co uk>
Date: Mon Mar 21 17:59:52 2011 -0400
sourcelist: Add a button to hide the error infobar
pitivi/ui/sourcelist.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index db2fd44..38850ff 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -250,9 +250,14 @@ class SourceList(gtk.VBox, Loggable):
self._warning_label.set_line_wrap_mode(pango.WRAP_WORD)
self._warning_label.set_justify(gtk.JUSTIFY_CENTER)
self._view_error_btn = gtk.Button()
+ self._hide_infobar_btn = gtk.Button()
+ self._hide_infobar_btn.set_label(_("Hide"))
self._view_error_btn.connect("clicked", self._viewErrorsButtonClickedCb)
+ self._hide_infobar_btn.connect("clicked",
+ self._hideInfoBarClickedCb)
content_area.add(self._warning_label)
actions_area.add(self._view_error_btn)
+ actions_area.add(self._hide_infobar_btn)
# The _progressbar that shows up when importing clips
self._progressbar = gtk.ProgressBar()
@@ -721,6 +726,10 @@ class SourceList(gtk.VBox, Loggable):
self.debug("Let's play %s", factory.uri)
self.emit('play', factory)
+ def _hideInfoBarClickedCb(self, unused_button):
+ self._errors = []
+ self._import_warning_infobar.hide()
+
def _viewErrorsButtonClickedCb(self, unused_button):
"""
Show a FileListErrorDialog to display import _errors.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]