]> sigrok.org Git - sigrok-meter.git/commitdiff
Hook up the About dialog to Help->About.
authorUwe Hermann <redacted>
Tue, 16 Apr 2013 18:31:30 +0000 (20:31 +0200)
committerUwe Hermann <redacted>
Tue, 16 Apr 2013 18:04:10 +0000 (20:04 +0200)
sigrok-meter
sigrok-meter.glade

index 9711c83a0cfc1f25e286ad81260220a871e6177d..d1c98636743a3c4e0f4b2b384e86fc07de1a4b88 100755 (executable)
@@ -25,6 +25,10 @@ from gi.repository import Gtk
 class Handler:
     def onDeleteWindow(self, *args):
         Gtk.main_quit(*args)
+    def on_imagemenuitemAbout_activate(self, *args):
+        about = builder.get_object("aboutdialog")
+        about.run()
+        about.hide()
 
 builder = Gtk.Builder()
 builder.add_from_file("sigrok-meter.glade")
index 3c648989d6766927a1f9123cbec9df09489d7601..9f8fbb62d1bc8603eb6d6b5c2f4c7c17c6e0398b 100644 (file)
@@ -19,7 +19,7 @@
         <property name="orientation">vertical</property>
         <property name="spacing">2</property>
         <child internal-child="action_area">
-          <object class="GtkButtonBox" id="aboutdialog-action_area1">
+          <object class="GtkButtonBox" id="aboutdialogButtonBox">
             <property name="can_focus">False</property>
             <property name="layout_style">end</property>
           </object>
@@ -97,6 +97,7 @@
                         <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"/>
                       </object>
                     </child>
                   </object>