From: Uwe Hermann Date: Tue, 16 Apr 2013 18:31:30 +0000 (+0200) Subject: Hook up the About dialog to Help->About. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dd73092bcdc3de3618887c9cd2d25cc6361450e6;p=sigrok-meter.git Hook up the About dialog to Help->About. --- diff --git a/sigrok-meter b/sigrok-meter index 9711c83..d1c9863 100755 --- a/sigrok-meter +++ b/sigrok-meter @@ -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") diff --git a/sigrok-meter.glade b/sigrok-meter.glade index 3c64898..9f8fbb6 100644 --- a/sigrok-meter.glade +++ b/sigrok-meter.glade @@ -19,7 +19,7 @@ vertical 2 - + False end @@ -97,6 +97,7 @@ False True True +