Deactivate album menu items properly when no album is selected.
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 22 Jul 2004 14:26:31 +0000 (14:26 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 22 Jul 2004 14:26:31 +0000 (14:26 +0000)
src/gkofoto/albums.py

index 8e4fbac..4a96f61 100644 (file)
@@ -83,6 +83,10 @@ class Albums:
             registerMenuItem.set_sensitive(False)
             destroyMenuItem.set_sensitive(False)
             editMenuItem.set_sensitive(False)
+            env.widgets["menubarCreateAlbumChild"].set_sensitive(False)
+            env.widgets["menubarRegisterAndAddImages"].set_sensitive(False)
+            env.widgets["menubarDestroy"].set_sensitive(False)
+            env.widgets["menubarProperties"].set_sensitive(False)
 
     def _createChildAlbum(self, *dummies):
         dialog = AlbumDialog("Create album")