[gnome-games] aisleriot: Sync prop-editor from gtk
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: Sync prop-editor from gtk
- Date: Sat, 30 Oct 2010 18:00:00 +0000 (UTC)
commit 1968e9fec2df3c95cc17fbaee9d324e0a6cd91f9
Author: Christian Persch <chpe gnome org>
Date: Sat Oct 30 19:59:00 2010 +0200
aisleriot: Sync prop-editor from gtk
aisleriot/prop-editor.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/aisleriot/prop-editor.c b/aisleriot/prop-editor.c
index f2c3c88..69a7ef7 100644
--- a/aisleriot/prop-editor.c
+++ b/aisleriot/prop-editor.c
@@ -377,11 +377,12 @@ bool_modified (GtkToggleButton *tb, gpointer data)
GtkWidget *widget = GTK_WIDGET (p->obj);
GtkWidget *parent = gtk_widget_get_parent (widget);
- gtk_container_child_set (GTK_CONTAINER (parent),
- widget, p->spec->name, (int) tb->active, NULL);
+ gtk_container_child_set (GTK_CONTAINER (parent), widget,
+ p->spec->name, (int) gtk_toggle_button_get_active (tb),
+ NULL);
}
else
- g_object_set (p->obj, p->spec->name, (int) tb->active, NULL);
+ g_object_set (p->obj, p->spec->name, (int) gtk_toggle_button_get_active (tb), NULL);
}
static void
@@ -394,7 +395,7 @@ bool_changed (GObject *object, GParamSpec *pspec, gpointer data)
g_value_init (&val, G_TYPE_BOOLEAN);
get_property_value (object, pspec, &val);
- if (g_value_get_boolean (&val) != tb->active)
+ if (g_value_get_boolean (&val) != gtk_toggle_button_get_active (tb))
{
block_controller (G_OBJECT (tb));
gtk_toggle_button_set_active (tb, g_value_get_boolean (&val));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]