[gcalctool] Convert numeric keypad separator into locale specific version (Bug #632794)
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcalctool] Convert numeric keypad separator into locale specific version (Bug #632794)
- Date: Tue, 21 Dec 2010 03:45:18 +0000 (UTC)
commit d74739df366022a1c98fa91c08f11e6941d505ff
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Dec 21 14:44:59 2010 +1100
Convert numeric keypad separator into locale specific version (Bug #632794)
NEWS | 2 ++
src/math-display.c | 6 ++++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 881374c..7148b30 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ Overview of changes in gcalctool 5.91.4
AED, BHD, BND, BWP, CLP, COP, DZD, ILS, IRR, KWD, KZT, LKR,
LYD, MUR, NPR, OMR, PEN, PKR, QAR, SAR, TND, TTD, UYU, VEF
* Don't hide GCalctool in KDE
+ * Convert numeric keypad separator into locale specific version
+ (Bug #632794)
Overview of changes in gcalctool 5.91.3
diff --git a/src/math-display.c b/src/math-display.c
index 57a102b..81b1583 100644
--- a/src/math-display.c
+++ b/src/math-display.c
@@ -90,6 +90,12 @@ display_key_press_cb(GtkWidget *widget, GdkEventKey *event, MathDisplay *display
return TRUE;
}
+ /* Numeric keypad will often insert '.' regardless of locale */
+ if (event->keyval == GDK_KEY_KP_Decimal) {
+ math_equation_insert_numeric_point(display->priv->equation);
+ return TRUE;
+ }
+
/* Substitute */
if (state == 0) {
if (c == '*') {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]