Removed duplicated menu item callback registration code.
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 31 Jul 2004 08:50:59 +0000 (08:50 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 31 Jul 2004 08:50:59 +0000 (08:50 +0000)
src/gkofoto/albums.py

index 116bbfe..213c30d 100644 (file)
@@ -160,13 +160,6 @@ class Albums:
 
     def _treeViewFocusInEvent(self, widget, event):
         self._albumSelectionUpdated(None, load=False)
-        for widgetName, function in [
-                ("menubarCreateAlbumChild", self._createChildAlbum),
-                ("menubarRegisterAndAddImages", self._registerImages),
-                ("menubarProperties", self._editAlbum),
-                ]:
-            oid = env.widgets[widgetName].connect("activate", function, None)
-            self._connectedOids.append((env.widgets[widgetName], oid))
         for widgetName, function in [
                 ("menubarCreateAlbumChild", self._createChildAlbum),
                 ("menubarRegisterAndAddImages", self._registerImages),