[gimp] app: GimpSpinScale: the "none" keyval is GDK_KEY_VoidSymbol. not 0



commit bf3a1c89efcf4a6477fab09450a497a3f74a5617
Author: Michael Natterer <mitch gimp org>
Date:   Tue May 28 23:13:13 2013 +0200

    app: GimpSpinScale: the "none" keyval is GDK_KEY_VoidSymbol. not 0

 app/widgets/gimpspinscale.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpspinscale.c b/app/widgets/gimpspinscale.c
index f886794..a86a6d1 100644
--- a/app/widgets/gimpspinscale.c
+++ b/app/widgets/gimpspinscale.c
@@ -172,7 +172,8 @@ gimp_spin_scale_init (GimpSpinScale *scale)
   gtk_entry_set_has_frame (GTK_ENTRY (scale), FALSE);
   gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (scale), TRUE);
 
-  private->gamma = 1.0;
+  private->mnemonic_keyval = GDK_KEY_VoidSymbol;
+  private->gamma           = 1.0;
 }
 
 static void
@@ -182,7 +183,7 @@ gimp_spin_scale_dispose (GObject *object)
   guint                 keyval;
 
   keyval = private->mnemonic_keyval;
-  private->mnemonic_keyval = 0;
+  private->mnemonic_keyval = GDK_KEY_VoidSymbol;
 
   gimp_spin_scale_setup_mnemonic (GIMP_SPIN_SCALE (object), keyval);
 


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