Commits

Lucian Brănescu-Mihăilă  committed 2176bac

DIsable shutdown event, since it's only available in Gtk3 dev for now.

  • Participants
  • Parent commits 1c35194

Comments (0)

Files changed (3)

 src/*
 lib/*
 include/*
+share/*
 local
 
 irk.egg-info/*
 class Irk(Gtk.Application):
     def __init__(self):
         super(Irk, self).__init__(
-            application_id="apps.lucian.irk",
+            application_id='eu.elbl.ci.irk',
             flags=Gio.ApplicationFlags.FLAGS_NONE)
 
-        self.connect("activate", self._activate_cb)
+        self.connect('activate', self._activate_cb)
+        #self.connect('shutdown', self._close_cb)
 
         self.builder = Gtk.Builder()
         self.builder.add_from_file('irk.ui')
         irc_factory = IRCFactory(self._summary)
         reactor.connectTCP('irc.freenode.net', 6667, irc_factory)
 
+    def _close_cb(self, widget):
+        reactor.stop()
+
 if __name__ == "__main__":
     app = Irk()
     #app.run(None)
         <property name="can_focus">True</property>
         <child>
           <object class="GtkPaned" id="Chat pane">
-            <property name="width_request">600</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
             <property name="orientation">vertical</property>
                 </child>
                 <child>
                   <object class="GtkTreeView" id="Channel">
+                    <property name="width_request">600</property>
                     <property name="height_request">400</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>