Exemplo n.º 1
0
 def __bind_keys(self):
   XfConKeyBinder.register(self, [
     (self.settings.get_property('key-notebook-tab-rename'),
       self.__on_accel_tab_rename),
     (self.settings.get_property('key-notebook-tab-close'),
       self.__on_accel_tab_delete),
     (self.settings.get_property('key-notebook-tab-next'),
       self.__on_accel_tab_previous),
     (self.settings.get_property('key-notebook-tab-previous'),
       self.__on_accel_tab_next),
   ])
Exemplo n.º 2
0
    def __bind_keys(self):
        XfConKeyBinder.register(
            self,
            [
                (self.settings.get_property("key-quit"), self.__on_accel_quit),
                (self.settings.get_property("key-new-tab"), self.__on_accel_tab_create),
            ],
        )

        XfConKeyBinder.register_global(
            "XfCon Global", [(self.settings.get_property("key-show-hide"), self.__on_accel_show_hide)]
        )
Exemplo n.º 3
0
 def __on_focus_in(self, source, event):
     self.emit("focus-in-event", event)
     XfConKeyBinder.register(
         self,
         [
             (self.settings.get_property("key-clipboard-copy"), self.__on_menu_copy),
             (self.settings.get_property("key-clipboard-paste"), self.__on_menu_paste),
             (self.settings.get_property("key-view-split-horizontal"), self.__on_split_horizontal),
             (self.settings.get_property("key-view-split-vertical"), self.__on_split_vertical),
             (self.settings.get_property("key-view-activate-next"), self.__on_activate_next),
             (self.settings.get_property("key-view-activate-previous"), self.__on_activate_previous),
         ],
     )