kuthulux / gnome-connection-manager

repository for gnome-connection-manager from kuthulu.com/gcm
Other
68 stars 28 forks source link

Add Split to contextual menu #60

Closed mgomezleon closed 3 years ago

mgomezleon commented 3 years ago

ES: Adicionando opciones de split al menú contextual, para cuando la barra de herramientas esté oculta. EN: Adding split options to the contextual menu, for when the toolbar is hidden.

kuthulux commented 3 years ago

hola Miguel, gracias por PR

podrías agregar un check al mostrar el menú contextual para que sea visible solo si hay mas de un tab.

    def popupmenu(self, widget, event, label):
        if event.type == Gdk.EventType.BUTTON_PRESS and event.button == 3:
            self.popup.label = self.label
            if self.is_active:
                self.popup.mnuReopen.hide()
            else:
                self.popup.mnuReopen.show()

            #show/hide split menu
            nb = self.widget_.get_parent()
            if nb.get_n_pages()>1:
                self.popup.mnuSplitH.show()
                self.popup.mnuSplitV.show()
            else:
                self.popup.mnuSplitH.hide()
                self.popup.mnuSplitV.hide()
...
mgomezleon commented 3 years ago

Hola Renzo, primero que todo gracias a ti por tan útil app. Adicione lo que usted indico pero ademas desactive la opción cuando das click derecho sobre el terminal.

kuthulux commented 3 years ago

Hola Miguel el PR está con conflicto, puedes revisar tus commits para que el PR quede limpio y listo para el merge.?

mgomezleon commented 3 years ago

Hola @kuthulux Quedo resuelto.

kuthulux commented 3 years ago

listo, gracias