self.builder = Gtk.Builder()
self.builder.add_from_file("sigrok-meter.glade")
self.builder.connect_signals(self)
- self.win = self.builder.get_object("main-window")
+ self.win = self.builder.get_object("mainwindow")
self.win.show_all()
- def onDeleteWindow(self, *args):
+ def on_quit(self, *args):
Gtk.main_quit(*args)
- def on_imagemenuitemAbout_activate(self, action):
+ def on_about(self, action):
about = self.builder.get_object("aboutdialog")
about.run()
about.hide()
<property name="program_name">sigrok-meter</property>
<property name="version">0.1.0</property>
<property name="website">http://www.sigrok.org</property>
+ <property name="website_label" translatable="yes">http://www.sigrok.org</property>
<property name="license" translatable="yes">GNU GPL, version 3 or later</property>
<property name="logo">sigrok-logo-notext.png</property>
<property name="license_type">gpl-3-0</property>
</object>
</child>
</object>
- <object class="GtkWindow" id="main-window">
+ <object class="GtkWindow" id="mainwindow">
<property name="can_focus">False</property>
<property name="title" translatable="yes">sigrok-meter</property>
<property name="default_width">320</property>
<property name="default_height">200</property>
<property name="icon">sigrok-logo-notext.png</property>
- <signal name="delete-event" handler="onDeleteWindow" swapped="no"/>
+ <signal name="delete-event" handler="on_quit" swapped="no"/>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
- <signal name="activate" handler="onDeleteWindow" swapped="no"/>
+ <signal name="activate" handler="on_quit" swapped="no"/>
</object>
</child>
</object>
<property name="can_focus">False</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
- <signal name="activate" handler="on_imagemenuitemAbout_activate" swapped="no"/>
+ <signal name="activate" handler="on_about" swapped="no"/>
</object>
</child>
</object>