[Gnucash-changes] r12037 - gnucash/trunk - Fix the duplicate
transaction dialog so that the "Enter" key
David Hampton
hampton at cvs.gnucash.org
Sat Nov 26 02:02:10 EST 2005
Author: hampton
Date: 2005-11-26 02:02:09 -0500 (Sat, 26 Nov 2005)
New Revision: 12037
Trac: http://svn.gnucash.org/trac/changeset/12037
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome/glade/register.glade
gnucash/trunk/src/register/ledger-core/dialog-dup-trans.c
Log:
Fix the duplicate transaction dialog so that the "Enter" key
activates the dialog box.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2005-11-26 07:01:03 UTC (rev 12036)
+++ gnucash/trunk/ChangeLog 2005-11-26 07:02:09 UTC (rev 12037)
@@ -1,5 +1,10 @@
2005-11-25 David Hampton <hampton at 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
Modified: gnucash/trunk/src/gnome/glade/register.glade
===================================================================
--- gnucash/trunk/src/gnome/glade/register.glade 2005-11-26 07:01:03 UTC (rev 12036)
+++ gnucash/trunk/src/gnome/glade/register.glade 2005-11-26 07:02:09 UTC (rev 12037)
@@ -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>
Modified: gnucash/trunk/src/register/ledger-core/dialog-dup-trans.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/dialog-dup-trans.c 2005-11-26 07:01:03 UTC (rev 12036)
+++ gnucash/trunk/src/register/ledger-core/dialog-dup-trans.c 2005-11-26 07:02:09 UTC (rev 12037)
@@ -112,6 +112,7 @@
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 @@
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);
More information about the gnucash-changes
mailing list