summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-24 21:04:49 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-24 22:37:02 -0500
commite73a40733f08b3d1d9cd5ce9927b6bdebbb6e8cf (patch)
tree2728bbbed4e9ab8ff21a46f100fd1fb1cff5fa0a /demos
parent259f465e015756ee2724f182356fd6cd439e9bff (diff)
downloadgtk+-e73a40733f08b3d1d9cd5ce9927b6bdebbb6e8cf.tar.gz
Rename GtkSpinner::active to ::spinning
And add a setter and getter. The old name was confusing with the widget state of the same name. 'Active' is just too overloaded.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/dnd.c8
-rw-r--r--demos/widget-factory/widget-factory.ui4
2 files changed, 6 insertions, 6 deletions
diff --git a/demos/gtk-demo/dnd.c b/demos/gtk-demo/dnd.c
index bf82ccf37a..92403f1def 100644
--- a/demos/gtk-demo/dnd.c
+++ b/demos/gtk-demo/dnd.c
@@ -59,7 +59,7 @@ serialize_widget (GtkWidget *widget)
}
else if (GTK_IS_SPINNER (widget))
{
- g_object_get (widget, "active", &demo->active, NULL);
+ g_object_get (widget, "spinning", &demo->active, NULL);
}
else
{
@@ -80,7 +80,7 @@ deserialize_widget (GtkDemoWidget *demo)
}
else if (demo->type == GTK_TYPE_SPINNER)
{
- widget = g_object_new (demo->type, "active", demo->active, NULL);
+ widget = g_object_new (demo->type, "spinning", demo->active, NULL);
gtk_style_context_add_class (gtk_widget_get_style_context (widget), "demo");
}
else
@@ -240,8 +240,8 @@ edit_cb (GtkWidget *button, GtkWidget *child)
{
gboolean active;
- g_object_get (child, "active", &active, NULL);
- g_object_set (child, "active", !active, NULL);
+ g_object_get (child, "spinning", &active, NULL);
+ g_object_set (child, "spinning", !active, NULL);
}
if (button)
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index a800b45b2c..b2766d46ee 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -733,7 +733,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</child>
<child>
<object class="GtkSpinner" id="spinner1">
- <property name="active">1</property>
+ <property name="spinning">1</property>
<layout>
<property name="left-attach">2</property>
</layout>
@@ -749,7 +749,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</child>
<child>
<object class="GtkSpinner" id="spinner3">
- <property name="active">1</property>
+ <property name="spinning">1</property>
<property name="sensitive">0</property>
<layout>
<property name="left-attach">2</property>