[jhbuild: 40/60] [gui] connect help button



commit ac4223828e16a6deffa9ec5c939cddac1e98c6a6
Author: Frédéric Péters <fpeters 0d be>
Date:   Thu May 21 14:53:53 2009 +0200

    [gui] connect help button
---
 jhbuild/frontends/gtkui.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/jhbuild/frontends/gtkui.py b/jhbuild/frontends/gtkui.py
index fa72d8f..43418f2 100644
--- a/jhbuild/frontends/gtkui.py
+++ b/jhbuild/frontends/gtkui.py
@@ -178,6 +178,7 @@ class AppWindow(gtk.Window, buildscript.BuildScript):
         buttonbox.add(self.build_button)
 
         button = gtk.Button(stock=gtk.STOCK_HELP)
+        button.connect('clicked', self.on_help_cb)
         buttonbox.add(button)
         buttonbox.set_child_secondary(button, True)
 
@@ -220,6 +221,10 @@ class AppWindow(gtk.Window, buildscript.BuildScript):
             return
         self.error_resolution = self.error_resolution_model.get(iter, 1)[0]
 
+    def on_help_cb(self, *args):
+        gtk.show_uri(gtk.gdk.screen_get_default(),
+                'ghelp:jhbuild', gtk.get_current_event_time())
+
     def on_build_cb(self, *args):
         if not self.orig_modulelist:
             modules = [self.modules_list_model.get(



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]