[gtk+] tests: Update prop-editor adjustment usage for sealing
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Update prop-editor adjustment usage for sealing
- Date: Wed, 5 Jan 2011 22:56:37 +0000 (UTC)
commit b5333057289406d4692dbe364e0b06b82e9101b8
Author: Benjamin Otte <otte redhat com>
Date: Wed Jan 5 23:28:36 2011 +0100
tests: Update prop-editor adjustment usage for sealing
tests/prop-editor.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/tests/prop-editor.c b/tests/prop-editor.c
index 957111e..41c61f8 100644
--- a/tests/prop-editor.c
+++ b/tests/prop-editor.c
@@ -159,10 +159,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
@@ -190,7 +190,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));
@@ -211,10 +211,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
@@ -226,7 +226,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));
@@ -247,10 +247,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
@@ -262,7 +262,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));
@@ -283,10 +283,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
@@ -298,7 +298,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]