gcalctool r2262 - in trunk: . gcalctool glade



Author: rancell
Date: Sun Oct 12 07:15:01 2008
New Revision: 2262
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2262&view=rev

Log:
Made financial dialogs reset before display (Robin Sonefors, Bug #318686)

Modified:
   trunk/ChangeLog
   trunk/gcalctool/gtk.c
   trunk/glade/financial.glade

Modified: trunk/gcalctool/gtk.c
==============================================================================
--- trunk/gcalctool/gtk.c	(original)
+++ trunk/gcalctool/gtk.c	Sun Oct 12 07:15:01 2008
@@ -1388,7 +1388,11 @@
         entry = glade_xml_get_widget(X->financial,
                                      finc_dialog_fields[dialog][i]);
         MPstr_to_num(gtk_entry_get_text(GTK_ENTRY(entry)), 10, arg[i]);
+        gtk_entry_set_text(GTK_ENTRY(entry), "0");
     }
+    gtk_widget_grab_focus(glade_xml_get_widget(X->financial, 
+                                               finc_dialog_fields[dialog][0]));
+
     do_finc_expression(dialog, arg[0], arg[1], arg[2], arg[3]);
 }
 

Modified: trunk/glade/financial.glade
==============================================================================
--- trunk/glade/financial.glade	(original)
+++ trunk/glade/financial.glade	Sun Oct 12 07:15:01 2008
@@ -86,7 +86,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -107,7 +107,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -128,7 +128,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -433,7 +433,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -454,7 +454,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -504,7 +504,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -723,7 +723,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -744,7 +744,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -765,7 +765,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -984,7 +984,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1005,7 +1005,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1026,7 +1026,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1245,7 +1245,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1266,7 +1266,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1287,7 +1287,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1506,7 +1506,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1527,7 +1527,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1548,7 +1548,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1739,7 +1739,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1760,7 +1760,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -1781,7 +1781,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -2029,7 +2029,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -2050,7 +2050,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -2071,7 +2071,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -2092,7 +2092,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -2224,7 +2224,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -2245,7 +2245,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>
@@ -2266,7 +2266,7 @@
 	      <property name="editable">True</property>
 	      <property name="visibility">True</property>
 	      <property name="max_length">0</property>
-	      <property name="text" translatable="yes"></property>
+	      <property name="text" translatable="yes">0</property>
 	      <property name="has_frame">True</property>
 	      <property name="invisible_char">â</property>
 	      <property name="activates_default">False</property>



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