Fix the value type

svn path=/trunk/; revision=18816
This commit is contained in:
Matthias Clasen 2007-09-13 21:25:48 +00:00
parent 3c4f079d46
commit e297090fa7
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2007-09-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscalebutton.c: Use the right value type when setting
the value. (#476688, Christian Persch)
* configure.in: Bump version to 2.12.0
* NEWS: Updates

1
NEWS
View File

@ -85,6 +85,7 @@ Overview of Changes from GTK+ 2.11.6 to 2.12.0
436576 GtkFileChooserButton title from supplied dialog
474897 rendering problem with latest gtk+
475400 Fix a typo in gtkentry.c
476688 scale button uses wrong value type in getter
* Updated translations
- Bulgarian (bg)

View File

@ -432,7 +432,7 @@ gtk_scale_button_get_property (GObject *object,
switch (prop_id)
{
case PROP_VALUE:
g_value_set_float (value, gtk_scale_button_get_value (button));
g_value_set_double (value, gtk_scale_button_get_value (button));
break;
case PROP_SIZE:
g_value_set_enum (value, priv->size);