Ejemplo n.º 1
0
    def show(self):
        if len(self.paths) == 0:
            return

        context_menu = GtkContextMenu(self.structure, self.conditions,
                                      self.callbacks)
        context_menu.show(self.event)
Ejemplo n.º 2
0
    def show_menu(self, data):
        # self.show_files_table_popup_menu(treeview, data)
        selected_propnames = self.table.get_selected_row_items(0)
        propdetails = self.svn.propdetails(self.path)

        filtered_details = {}
        for propname, detail in list(propdetails.items()):
            if propname in selected_propnames:
                filtered_details[propname] = detail

        conditions = PropMenuConditions(self.path, filtered_details)
        callbacks = PropMenuCallbacks(self, self.path, filtered_details,
                                      self.vcs)

        GtkContextMenu(PROP_MENU_STRUCTURE, conditions, callbacks).show(data)
Ejemplo n.º 3
0
    def show(self):
        if len(self.caller.selected_rows) == 0:
            return

        context_menu = GtkContextMenu(self.structure, self.conditions, self.callbacks)
        context_menu.show(self.event)