gcalctool r2397 - in trunk: . gcalctool



Author: rancell
Date: Sat Feb 28 03:41:45 2009
New Revision: 2397
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2397&view=rev

Log:
Restore number display mode (FIX/SCI/ENG) on startup (Robert Ancell, Bug #572881)

Modified:
   trunk/ChangeLog
   trunk/gcalctool/display.c
   trunk/gcalctool/gtk.c

Modified: trunk/gcalctool/display.c
==============================================================================
--- trunk/gcalctool/display.c	(original)
+++ trunk/gcalctool/display.c	Sat Feb 28 03:41:45 2009
@@ -546,7 +546,7 @@
         display->show_tsep = i;
     else
         display->show_tsep = FALSE;
-   
+
     if (get_enumerated_resource(R_DISPLAY, display_types, &i))
        display->format = (DisplayFormat) i;
     else

Modified: trunk/gcalctool/gtk.c
==============================================================================
--- trunk/gcalctool/gtk.c	(original)
+++ trunk/gcalctool/gtk.c	Sat Feb 28 03:41:45 2009
@@ -2830,7 +2830,7 @@
     ui_set_show_trailing_zeroes(v->display.show_zeroes);
     
     ui_set_mode(X.mode);
-    ui_set_numeric_mode(FIX);
+    ui_set_numeric_mode(v->display.format);
     ui_set_base(v->base);
     ui_set_accuracy(v->accuracy);
     ui_set_undo_enabled(FALSE, FALSE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]