[Gnucash-changes] r14375 - gnucash/trunk/src/gnome-utils - Make the keypad 'minus' key enter a dash in the date entry for ISO dates.

Chris Shoemaker chris at cvs.gnucash.org
Fri Jun 16 20:38:09 EDT 2006


Author: chris
Date: 2006-06-16 20:38:08 -0400 (Fri, 16 Jun 2006)
New Revision: 14375
Trac: http://svn.gnucash.org/trac/changeset/14375

Modified:
   gnucash/trunk/src/gnome-utils/dialog-utils.c
Log:
   Make the keypad 'minus' key enter a dash in the date entry for ISO dates.
   Fixes Bug #345096.


Modified: gnucash/trunk/src/gnome-utils/dialog-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-utils.c	2006-06-16 23:28:11 UTC (rev 14374)
+++ gnucash/trunk/src/gnome-utils/dialog-utils.c	2006-06-17 00:38:08 UTC (rev 14375)
@@ -464,6 +464,8 @@
       return TRUE;
 
     case GDK_minus:
+    case GDK_KP_Subtract:
+    case GDK_underscore:
       if ((strlen (date_str) != 0) && (dateSeparator () == '-'))
       {
         const char *c;
@@ -484,9 +486,6 @@
           return FALSE;
       }
 
-      /* fall through */
-    case GDK_KP_Subtract:
-    case GDK_underscore:
       if (event->state & GDK_SHIFT_MASK)
         g_date_subtract_days (&gdate, 7);
       else if (event->state & GDK_MOD1_MASK)



More information about the gnucash-changes mailing list