[dialog-fincalc.glade] Inserting a help button

This commit is contained in:
Christian Wehling 2022-05-30 20:40:56 +02:00
parent 559d581cf7
commit d95a17f152
3 changed files with 25 additions and 3 deletions

View File

@ -63,6 +63,7 @@
#define HL_ACCEDIT "acct-edit"
#define HL_COMMODITY "tool-commodity"
#define HL_FIND_TRANSACTIONS "tool-find"
#define HL_FIN_CALC "tool-calc"
#define HL_GLOBPREFS "set-prefs"
#define HL_PRINTCHECK "print-check"
#define HL_RECNWIN "acct-reconcile"

View File

@ -37,6 +37,7 @@
#include "gnc-component-manager.h"
#include "gnc-date-edit.h"
#include "gnc-engine.h"
#include "gnc-ui.h"
#include "gnc-gui-query.h"
#include "gnc-locale-utils.h"
@ -496,6 +497,10 @@ void fincalc_response_cb (GtkDialog *dialog,
{
switch (response)
{
case GTK_RESPONSE_HELP:
gnc_gnome_help (GTK_WINDOW(dialog), HF_HELP, HL_FIN_CALC);
return;
case GTK_RESPONSE_OK:
/* Do something here whenever the hidden schedule button is clicked. */
/* Fall through */

View File

@ -102,6 +102,21 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="layout-style">end</property>
<child>
<object class="GtkButton" id="help_button">
<property name="label" translatable="yes">_Help</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="use-underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
<property name="secondary">True</property>
</packing>
</child>
<child>
<object class="GtkButton" id="close_button">
<property name="label" translatable="yes">_Close</property>
@ -114,7 +129,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
<property name="position">1</property>
</packing>
</child>
<child>
@ -128,7 +143,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
<property name="position">2</property>
</packing>
</child>
<child>
@ -142,7 +157,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">2</property>
<property name="position">3</property>
</packing>
</child>
</object>
@ -856,6 +871,7 @@
</object>
</child>
<action-widgets>
<action-widget response="-11">help_button</action-widget>
<action-widget response="-7">close_button</action-widget>
<action-widget response="-6">hidden_button</action-widget>
<action-widget response="-5">schedule_button</action-widget>