Example #1
0
 def assume_connection(self, force=False):
     if self.connection is not None and not force:
         return True
     dlg = ConnectionDialog(self.win)
     if dlg.run() == Gtk.ResponseType.OK:
         self.connection = dlg.get_connection()
         self.emit('connection-changed')
     dlg.destroy()
     return self.connection is not None
Example #2
0
 def assume_connection(self, force=False):
     if self.connection is not None and not force:
         return True
     dlg = ConnectionDialog(self.win)
     if dlg.run() == Gtk.ResponseType.OK:
         self.connection = dlg.get_connection()
         self.emit('connection-changed')
     dlg.destroy()
     return self.connection is not None
Example #3
0
 def on_manage_connections(self, *args):
     dlg = ConnectionDialog(self.win, mode=ConnectionDialog.MODE_MANAGE)
     dlg.run()
     dlg.destroy()
Example #4
0
 def on_manage_connections(self, *args):
     dlg = ConnectionDialog(self.win, mode=ConnectionDialog.MODE_MANAGE)
     dlg.run()
     dlg.destroy()