Merge Christian Wehling's 'SLR help-buttons' into maint.

This commit is contained in:
John Ralls 2022-05-21 16:52:44 -07:00
commit e38b1aa0ae
3 changed files with 24 additions and 2 deletions

View File

@ -67,6 +67,7 @@
#define HL_PRINTCHECK "print-check"
#define HL_RECNWIN "acct-reconcile"
#define HL_SXEDITOR "trans-sched"
#define HL_SX_SLR "trans-sched-slr"
#define HL_BOOK_OPTIONS "book-options"
#define HL_STYLE_SHEET "change-style"
#define HL_CLOSE_BOOK "tool-close-book"

View File

@ -1137,6 +1137,10 @@ dialog_response_cb (GtkDialog *dialog, gint response_id, GncSxSinceLastRunDialog
GList* creation_errors = NULL;
switch (response_id)
{
case GTK_RESPONSE_HELP:
gnc_gnome_help (GTK_WINDOW(dialog), HF_HELP, HL_SX_SLR);
break;
case GTK_RESPONSE_OK:
// @@fixme validate current state(GError *errs);
// - [ ] instance state constraints

View File

@ -1489,6 +1489,22 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="layout-style">end</property>
<child>
<object class="GtkButton" id="helpbutton2">
<property name="label" translatable="yes">_Help</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="receives-default">False</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="cancelbutton2">
<property name="label" translatable="yes">_Cancel</property>
@ -1502,7 +1518,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>
@ -1517,7 +1533,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
<property name="position">2</property>
</packing>
</child>
</object>
@ -1604,6 +1620,7 @@
</object>
</child>
<action-widgets>
<action-widget response="-11">helpbutton2</action-widget>
<action-widget response="-6">cancelbutton2</action-widget>
<action-widget response="-5">okbutton2</action-widget>
</action-widgets>