gimp r25805 - trunk/app/widgets



Author: neo
Date: Mon May 26 15:27:24 2008
New Revision: 25805
URL: http://svn.gnome.org/viewvc/gimp?rev=25805&view=rev

Log:
fixed some bugs in the scale button support


Modified:
   trunk/app/widgets/gimppropwidgets.c

Modified: trunk/app/widgets/gimppropwidgets.c
==============================================================================
--- trunk/app/widgets/gimppropwidgets.c	(original)
+++ trunk/app/widgets/gimppropwidgets.c	Mon May 26 15:27:24 2008
@@ -341,6 +341,7 @@
 /******************/
 
 static void   gimp_prop_scale_button_callback (GtkWidget  *widget,
+                                               gdouble     value,
                                                GObject    *config);
 static void   gimp_prop_scale_button_notify   (GObject    *config,
                                                GParamSpec *param_spec,
@@ -403,23 +404,21 @@
 
 static void
 gimp_prop_scale_button_callback (GtkWidget *button,
+                                 gdouble    value,
                                  GObject   *config)
 {
   GParamSpec *param_spec;
-  gdouble     value;
 
   param_spec = get_param_spec (G_OBJECT (button));
   if (! param_spec)
     return;
 
-  value = gtk_scale_button_get_value (GTK_SCALE_BUTTON (button));
-
   g_signal_handlers_block_by_func (config,
                                    gimp_prop_scale_button_notify,
                                    button);
 
   g_object_set (config,
-                param_spec->name, &value,
+                param_spec->name, value,
                 NULL);
 
   g_signal_handlers_unblock_by_func (config,



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