Fix the duplicate transaction dialog so that the "Enter" key

activates the dialog box.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12037 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-26 07:02:09 +00:00
parent bcfe8adfcb
commit 040fde32a2
3 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2005-11-25 David Hampton <hampton@employees.org>
* src/register/ledger-core/dialog-dup-trans.c:
* src/gnome/glade/register.glade: Fix the duplicate transaction
dialog so that the "Enter" key activates the dialog box. Fixes
104496.
* src/gnome-utils/gnc-date-edit.[ch]:
* src/gnome/window-reconcile.c:
* src/gnome-search/search-date.c: Update function name to match

View File

@ -296,6 +296,7 @@
<widget class="GtkButton" id="button77">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-ok</property>
<property name="use_stock">True</property>
@ -415,7 +416,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">0 0 1e+09 1 10 10</property>
<property name="adjustment">0 0 1000000000 1 10 10</property>
</widget>
<packing>
<property name="padding">0</property>
@ -1627,7 +1628,7 @@
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="invisible_char">*</property>
<property name="activates_default">True</property>
</widget>
<packing>

View File

@ -112,6 +112,7 @@ gnc_dup_trans_dialog_create (GtkWidget * parent, DupTransDialog *dt_dialog,
GtkWidget *hbox;
date_edit = gnc_date_edit_new (date, FALSE, FALSE);
gnc_date_activates_default(GNC_DATE_EDIT(date_edit), TRUE);
hbox = glade_xml_get_widget (xml, "date_hbox");
gtk_widget_show (date_edit);
@ -126,6 +127,7 @@ gnc_dup_trans_dialog_create (GtkWidget * parent, DupTransDialog *dt_dialog,
num_spin = glade_xml_get_widget (xml, "num_spin");
dt_dialog->num_edit = num_spin;
gtk_entry_set_activates_default(GTK_ENTRY(num_spin), TRUE);
gtk_signal_connect(GTK_OBJECT(num_spin), "output",
GTK_SIGNAL_FUNC(gnc_dup_trans_output_cb), dt_dialog);