summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-01-14 16:16:15 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-01-14 16:16:15 +0100
commit6ca53729239164fb725ba2dc9e97cb0fee81b4c3 (patch)
treeac382a3b33cf90794043e4fb84e9d8c8daabef51
parent0ba4017a42a0797d69a30c2802dde627dfbf29dd (diff)
downloadabrt-6ca53729239164fb725ba2dc9e97cb0fee81b4c3.tar.gz
abrt-6ca53729239164fb725ba2dc9e97cb0fee81b4c3.tar.xz
abrt-6ca53729239164fb725ba2dc9e97cb0fee81b4c3.zip
- help button show the online help instead of about dialog rhbz#666267
- the help button opens the default browser and shows the deployment guide page: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-abrt.html
-rw-r--r--src/Gui/CCMainWindow.py7
-rw-r--r--src/Gui/ccgui.glade42
2 files changed, 45 insertions, 4 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 4ee14768..72851066 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -89,9 +89,10 @@ class MainWindow():
self.wTree.get_widget("bReport").connect("clicked", self.on_bReport_clicked)
self.wTree.get_widget("b_close").connect("clicked", self.on_bQuit_clicked)
self.wTree.get_widget("b_copy").connect("clicked", self.on_b_copy_clicked)
- self.wTree.get_widget("b_help").connect("clicked", self.on_miAbout_clicked)
+ self.wTree.get_widget("b_help").connect("clicked", self.on_miOnlineHelp_clicked)
self.wTree.get_widget("miQuit").connect("activate", self.on_bQuit_clicked)
self.wTree.get_widget("miAbout").connect("activate", self.on_miAbout_clicked)
+ self.wTree.get_widget("miOnlineHelp").connect("activate", self.on_miOnlineHelp_clicked)
self.wTree.get_widget("miPlugins").connect("activate", self.on_miPreferences_clicked)
self.wTree.get_widget("miPreferences").connect("activate", self.on_miSettings_clicked)
self.wTree.get_widget("miReport").connect("activate", self.on_bReport_clicked)
@@ -130,6 +131,10 @@ class MainWindow():
result = dialog.run()
dialog.hide()
+ def on_miOnlineHelp_clicked(self, widget):
+ # opens default browser and shows ABRT chapter from deployment guide
+ gtk.show_uri(None, "http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-abrt.html", gtk.gdk.CURRENT_TIME)
+
def on_miPreferences_clicked(self, widget):
dialog = PluginsSettingsDialog(self.window,self.ccdaemon)
dialog.hydrate()
diff --git a/src/Gui/ccgui.glade b/src/Gui/ccgui.glade
index 4f8c4f02..c2efa148 100644
--- a/src/Gui/ccgui.glade
+++ b/src/Gui/ccgui.glade
@@ -9,7 +9,6 @@
<property name="window_position">center-on-parent</property>
<property name="icon_name">abrt</property>
<property name="type_hint">dialog</property>
- <property name="has_separator">False</property>
<property name="program_name">ABRT</property>
<property name="version">@VER@</property>
<property name="copyright" translatable="yes">(C) 2009, 2010 Red Hat, Inc.</property>
@@ -128,6 +127,20 @@ M&#xE1;ir&#xED;n Duffy &lt;duffy@redhat.com&gt;</property>
</widget>
</child>
<child>
+ <widget class="GtkImageMenuItem" id="miOnlineHelp">
+ <property name="label" translatable="yes">Online _Help</property>
+ <property name="visible">True</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image2">
+ <property name="visible">True</property>
+ <property name="stock">gtk-help</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
<widget class="GtkImageMenuItem" id="miAbout">
<property name="label">gtk-about</property>
<property name="visible">True</property>
@@ -589,11 +602,34 @@ M&#xE1;ir&#xED;n Duffy &lt;duffy@redhat.com&gt;</property>
<property name="homogeneous">True</property>
<child>
<widget class="GtkButton" id="b_help">
- <property name="label">gtk-help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="use_stock">True</property>
+ <child>
+ <widget class="GtkHBox" id="hbox5">
+ <property name="visible">True</property>
+ <child>
+ <widget class="GtkImage" id="image1">
+ <property name="visible">True</property>
+ <property name="yalign">0</property>
+ <property name="stock">gtk-help</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label6">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes" context="yes">Online _Help</property>
+ <property name="use_underline">True</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
</widget>
<packing>
<property name="padding">10</property>