[gimp] app: set GimpSpinScale to numeric-only input
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: set GimpSpinScale to numeric-only input
- Date: Sat, 16 Apr 2011 00:11:52 +0000 (UTC)
commit 924d647284b3b945cbd51eed778513c8af3df0a0
Author: Michael Natterer <mitch gimp org>
Date: Sat Apr 16 02:09:37 2011 +0200
app: set GimpSpinScale to numeric-only input
It's the right thing to do, but also works around focus issues in SWM,
at least while the widget has the focus.
app/widgets/gimpspinscale.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index 2bc8bef..e19ff55 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -127,6 +127,7 @@ gimp_spin_scale_init (GimpSpinScale *scale)
{
gtk_entry_set_alignment (GTK_ENTRY (scale), 1.0);
gtk_entry_set_has_frame (GTK_ENTRY (scale), FALSE);
+ gtk_spin_button_set_numeric (GTK_ENTRY (scale), TRUE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]