[maemo-commits] [maemo-commits] r19173 - in projects/haf/trunk/gtk+: . gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Aug 21 14:10:00 EEST 2009
Author: mitch
Date: 2009-08-21 14:09:48 +0300 (Fri, 21 Aug 2009)
New Revision: 19173

Modified:
   projects/haf/trunk/gtk+/ChangeLog
   projects/haf/trunk/gtk+/gtk/gtkentry.c
Log:
2009-08-21  Michael Natterer  <mitch at lanedo.com>

	Fixes: NB#129394 Able to enter the unsupported characters in the
	Phone or Mobile field

	* gtk/gtkentry.c (hildon_gtk_input_mode_is_valid_char): change
	the set of allowed characters to what is specified:
	"0 1 2 3 4 5 6 7 8 9 p # * +".



Modified: projects/haf/trunk/gtk+/ChangeLog
===================================================================
--- projects/haf/trunk/gtk+/ChangeLog	2009-08-21 10:59:41 UTC (rev 19172)
+++ projects/haf/trunk/gtk+/ChangeLog	2009-08-21 11:09:48 UTC (rev 19173)
@@ -1,3 +1,12 @@
+2009-08-21  Michael Natterer  <mitch at lanedo.com>
+
+	Fixes: NB#129394 Able to enter the unsupported characters in the
+	Phone or Mobile field
+
+	* gtk/gtkentry.c (hildon_gtk_input_mode_is_valid_char): change
+	the set of allowed characters to what is specified:
+	"0 1 2 3 4 5 6 7 8 9 p # * +".
+
 2009-08-20  Alberto Garcia  <agarcia at igalia.com>
 
 	* gdk/gdkcairo.c

Modified: projects/haf/trunk/gtk+/gtk/gtkentry.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtkentry.c	2009-08-21 10:59:41 UTC (rev 19172)
+++ projects/haf/trunk/gtk+/gtk/gtkentry.c	2009-08-21 11:09:48 UTC (rev 19173)
@@ -2877,7 +2877,7 @@
 hildon_gtk_input_mode_is_valid_char (HildonGtkInputMode mode,
                                      gunichar           chr)
 {
-  static const char *tele_chars_ascii = "pwPWa/().-+*#?, ";
+  static const char *tele_chars_ascii = "p#*+";
 
   if (g_unichar_isalpha (chr) || chr == ' ')
     {

More information about the maemo-commits mailing list