Added help index and bug report menu options.
This commit is contained in:
parent
2b0fdc186c
commit
a92be02e80
|
@ -195,6 +195,38 @@
|
|||
<signal name="activate" handler="on_about1_activate" last_modification_time="Thu, 13 Apr 2006 11:24:18 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkImageMenuItem" id="index1">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Open the fluents documentation.</property>
|
||||
<property name="label" translatable="yes">_Index</property>
|
||||
<property name="use_underline">True</property>
|
||||
<signal name="activate" handler="on_index1_activate" last_modification_time="Thu, 27 Apr 2006 09:21:48 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image1">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-help</property>
|
||||
<property name="icon_size">1</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkMenuItem" id="report_bug1">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Report a bug in the program.</property>
|
||||
<property name="label" translatable="yes">_Report bug</property>
|
||||
<property name="use_underline">True</property>
|
||||
<signal name="activate" handler="on_report_bug1_activate" last_modification_time="Thu, 27 Apr 2006 09:52:04 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
|
|
@ -111,7 +111,9 @@ class FluentApp:
|
|||
'on_new1_activate' : (self.on_create_project),
|
||||
'on_button_new_clicked' : (self.on_create_project),
|
||||
'on_workflow_refresh_clicked' : (self.on_workflow_refresh_clicked),
|
||||
'on_about1_activate' : (self.on_help_about)}
|
||||
'on_index1_activate' : (self.on_help_index),
|
||||
'on_about1_activate' : (self.on_help_about),
|
||||
'on_report_bug1_activate' : (self.on_help_report_bug)}
|
||||
self.widget_tree.signal_autoconnect(signals)
|
||||
|
||||
# Log that we've set up the app now
|
||||
|
@ -141,6 +143,12 @@ class FluentApp:
|
|||
about = widget_tree.get_widget('aboutdialog')
|
||||
about.run()
|
||||
|
||||
def on_help_index(self, *ignored):
|
||||
gnome.help_display_uri('https://dev.pvv.org/projects/fluent/wiki/help')
|
||||
|
||||
def on_help_report_bug(self, *ignored):
|
||||
gnome.help_display_uri('https://dev.pvv.org/projects/fluent/newticket')
|
||||
|
||||
def on_workflow_refresh_clicked(self, *ignored):
|
||||
try:
|
||||
reload(sys.modules[self.workflow.__class__.__module__])
|
||||
|
@ -149,3 +157,4 @@ class FluentApp:
|
|||
logger.log('warning', e)
|
||||
else:
|
||||
logger.log('notice', 'Successfully reloaded workflow')
|
||||
|
||||
|
|
Reference in New Issue