Connect/disconnect menubarDelete properly when the table view is
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 19 Sep 2004 10:47:11 +0000 (10:47 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 19 Sep 2004 10:47:11 +0000 (10:47 +0000)
getting/losing focus (ticket #66).

src/gkofoto/gkofoto/tableview.py

index f223bb3..4f6b59e 100644 (file)
@@ -154,6 +154,7 @@ class TableView(ObjectCollectionView):
                 ("menubarCut", self._objectCollection.cut),
                 ("menubarCopy", self._objectCollection.copy),
                 ("menubarPaste", self._objectCollection.paste),
+                ("menubarDelete", self._objectCollection.delete),
                 ("menubarDestroy", oc.destroy),
                 ("menubarClear", lambda x: widget.get_selection().unselect_all()),
                 ("menubarSelectAll", lambda x: widget.get_selection().select_all()),
@@ -182,6 +183,7 @@ class TableView(ObjectCollectionView):
                 "menubarCut",
                 "menubarCopy",
                 "menubarPaste",
+                "menubarDelete",
                 "menubarDestroy",
                 "menubarClear",
                 "menubarSelectAll",