[gnome-games] Sync prop-editor with gtk+
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Sync prop-editor with gtk+
- Date: Tue, 18 Jan 2011 14:39:25 +0000 (UTC)
commit cacc849ab4a7e6bd2d3dcde63c2f48b73f03743d
Author: Christian Persch <chpe gnome org>
Date: Tue Jan 18 15:38:09 2011 +0100
Sync prop-editor with gtk+
aisleriot/prop-editor.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/aisleriot/prop-editor.c b/aisleriot/prop-editor.c
index cb490bb..11429c8 100644
--- a/aisleriot/prop-editor.c
+++ b/aisleriot/prop-editor.c
@@ -172,10 +172,10 @@ int_modified (GtkAdjustment *adj, gpointer data)
GtkWidget *parent = gtk_widget_get_parent (widget);
gtk_container_child_set (GTK_CONTAINER (parent),
- widget, p->spec->name, (int) adj->value, NULL);
+ widget, p->spec->name, (int) gtk_adjustment_get_value (adj), NULL);
}
else
- g_object_set (p->obj, p->spec->name, (int) adj->value, NULL);
+ g_object_set (p->obj, p->spec->name, (int) gtk_adjustment_get_value (adj), NULL);
}
static void
@@ -203,7 +203,7 @@ int_changed (GObject *object, GParamSpec *pspec, gpointer data)
get_property_value (object, pspec, &val);
- if (g_value_get_int (&val) != (int)adj->value)
+ if (g_value_get_int (&val) != (int)gtk_adjustment_get_value (adj))
{
block_controller (G_OBJECT (adj));
gtk_adjustment_set_value (adj, g_value_get_int (&val));
@@ -224,10 +224,10 @@ uint_modified (GtkAdjustment *adj, gpointer data)
GtkWidget *parent = gtk_widget_get_parent (widget);
gtk_container_child_set (GTK_CONTAINER (parent),
- widget, p->spec->name, (guint) adj->value, NULL);
+ widget, p->spec->name, (guint) gtk_adjustment_get_value (adj), NULL);
}
else
- g_object_set (p->obj, p->spec->name, (guint) adj->value, NULL);
+ g_object_set (p->obj, p->spec->name, (guint) gtk_adjustment_get_value (adj), NULL);
}
static void
@@ -239,7 +239,7 @@ uint_changed (GObject *object, GParamSpec *pspec, gpointer data)
g_value_init (&val, G_TYPE_UINT);
get_property_value (object, pspec, &val);
- if (g_value_get_uint (&val) != (guint)adj->value)
+ if (g_value_get_uint (&val) != (guint)gtk_adjustment_get_value (adj))
{
block_controller (G_OBJECT (adj));
gtk_adjustment_set_value (adj, g_value_get_uint (&val));
@@ -260,10 +260,10 @@ float_modified (GtkAdjustment *adj, gpointer data)
GtkWidget *parent = gtk_widget_get_parent (widget);
gtk_container_child_set (GTK_CONTAINER (parent),
- widget, p->spec->name, (float) adj->value, NULL);
+ widget, p->spec->name, (float) gtk_adjustment_get_value (adj), NULL);
}
else
- g_object_set (p->obj, p->spec->name, (float) adj->value, NULL);
+ g_object_set (p->obj, p->spec->name, (float) gtk_adjustment_get_value (adj), NULL);
}
static void
@@ -275,7 +275,7 @@ float_changed (GObject *object, GParamSpec *pspec, gpointer data)
g_value_init (&val, G_TYPE_FLOAT);
get_property_value (object, pspec, &val);
- if (g_value_get_float (&val) != (float) adj->value)
+ if (g_value_get_float (&val) != (float) gtk_adjustment_get_value (adj))
{
block_controller (G_OBJECT (adj));
gtk_adjustment_set_value (adj, g_value_get_float (&val));
@@ -296,10 +296,10 @@ double_modified (GtkAdjustment *adj, gpointer data)
GtkWidget *parent = gtk_widget_get_parent (widget);
gtk_container_child_set (GTK_CONTAINER (parent),
- widget, p->spec->name, (double) adj->value, NULL);
+ widget, p->spec->name, (double) gtk_adjustment_get_value (adj), NULL);
}
else
- g_object_set (p->obj, p->spec->name, (double) adj->value, NULL);
+ g_object_set (p->obj, p->spec->name, (double) gtk_adjustment_get_value (adj), NULL);
}
static void
@@ -311,7 +311,7 @@ double_changed (GObject *object, GParamSpec *pspec, gpointer data)
g_value_init (&val, G_TYPE_DOUBLE);
get_property_value (object, pspec, &val);
- if (g_value_get_double (&val) != adj->value)
+ if (g_value_get_double (&val) != gtk_adjustment_get_value (adj))
{
block_controller (G_OBJECT (adj));
gtk_adjustment_set_value (adj, g_value_get_double (&val));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]