gcalctool r2290 - in trunk: . gcalctool glade



Author: rancell
Date: Sun Nov  2 12:59:05 2008
New Revision: 2290
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2290&view=rev

Log:
Set decimal point label to be based on LC_NUMERIC as users can set their numerical representation to different to their language settings (Robin Sonefors, Bug #557331)

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

Modified: trunk/gcalctool/gtk.c
==============================================================================
--- trunk/gcalctool/gtk.c	(original)
+++ trunk/gcalctool/gtk.c	Sun Nov  2 12:59:05 2008
@@ -2757,6 +2757,9 @@
         widget = GET_WIDGET(name);
         g_object_set_data(G_OBJECT(widget), "accuracy", GINT_TO_POINTER(i));
     }
+
+    /* Localize label for numeric point */
+    gtk_button_set_label(GTK_BUTTON(GET_WIDGET("calc_numeric_point_button")), v->radix);
 }
 
 

Modified: trunk/glade/gcalctool.glade
==============================================================================
--- trunk/glade/gcalctool.glade	(original)
+++ trunk/glade/gcalctool.glade	Sun Nov  2 12:59:05 2008
@@ -6014,7 +6014,7 @@
 		<widget class="GtkButton" id="calc_numeric_point_button">
 		  <property name="visible">True</property>
 		  <property name="tooltip" translatable="yes" comments="Tooltip for the numeric point button">Numeric point</property>
-		  <property name="label" translatable="yes" comments="Numeric point button">.</property>
+		  <property name="label" comments="Label is set in gtk.c to comply with LC flags">.</property>
 		  <property name="use_underline">True</property>
 		  <property name="relief">GTK_RELIEF_NORMAL</property>
 		  <property name="focus_on_click">False</property>



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