Commits

Ronny Pfannschmidt  committed ec39b39

automated action rewrite of pida-plugins/quickopen/quickopen.py
actionsconfig: 162 180
actions:
qopen_show on_qopen_show
methods:
def create_actions(self):
'' # default shortcut or '' to enable shortcut for action
def on_qopen_show(self, action):

  • Participants
  • Parent commits 3a5543f
  • Branches action-cleanup

Comments (0)

Files changed (1)

File pida-plugins/quickopen/quickopen.py

 
 class QopenActionsConfig(ActionsConfig):
 
-    def create_actions(self):
-        #XXX: remember
-        self.create_action(
-            'qopen_show',
-            gtk.Action,
+
+    actions = [
+        gtk.Action('qopen_show',
             _('Open in project'),
             _('Open file in project.'),
-            gtk.STOCK_OPEN,
-            self.on_qopen_show,
-            ''  # default shortcut or '' to enable shortcut for action
-        )
+            gtk.STOCK_OPEN),
+    ]
+
+    accels = {
+        'qopen_show': ''  # default shortcut or '' to enable shortcut for action,
+    }
 
     def on_qopen_show(self, action):
         self.svc.show_qopen()