[pitivi: 6/13] Grey out unimplemented items from the menu bar and
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi: 6/13] Grey out unimplemented items from the menu bar and
- Date: Mon, 16 Mar 2009 08:04:20 -0400 (EDT)
commit 40179e0db271ac1ba2aff932c2a373003fe97668
Author: Alessandro Decina <alessandro decina collabora co uk>
Date: Wed Mar 11 16:36:41 2009 +0100
Grey out unimplemented items from the menu bar and the toolbar.
---
pitivi/ui/mainwindow.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 823cc19..72b875f 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -283,6 +283,16 @@ class PitiviMainWindow(gtk.Window, Loggable):
vbox = gtk.VBox(False)
self.add(vbox)
self.menu = self.uimanager.get_widget("/MainMenuBar")
+
+ # grey out unimplemented actions
+ for item in ('OpenProject', 'SaveProject',
+ 'SaveProjectAs', 'Screencast'):
+ for prefix in ('/MainMenuBar/File/', '/MainToolBar/'):
+ widget = self.uimanager.get_widget(prefix + item)
+ if widget is None:
+ continue
+ widget.set_sensitive(False)
+
vbox.pack_start(self.menu, expand=False)
self.toolbar = self.uimanager.get_widget("/MainToolBar")
vbox.pack_start(self.toolbar, expand=False)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]