[gtk] widget-factory: Add some animation in a popover
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] widget-factory: Add some animation in a popover
- Date: Fri, 24 May 2019 19:06:38 +0000 (UTC)
commit e95e39cbd3ccb85dd9687bc998457f56bbf9ac75
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 24 11:38:54 2019 +0000
widget-factory: Add some animation in a popover
demos/widget-factory/widget-factory.c | 3 +++
demos/widget-factory/widget-factory.ui | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 972a28c45d..ad3b480ed4 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -1903,6 +1903,9 @@ activate (GApplication *app)
g_signal_connect (adj, "value-changed", G_CALLBACK (adjustment3_value_changed), widget);
g_signal_connect (adj, "value-changed", G_CALLBACK (adjustment3_value_changed), widget2);
+ widget = (GtkWidget *)gtk_builder_get_object (builder, "extra_info_entry");
+ g_timeout_add (100, (GSourceFunc)pulse_it, widget);
+
gtk_widget_show (GTK_WIDGET (window));
g_object_unref (builder);
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index db1c73c0cc..0a2d4e25cf 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -3403,8 +3403,9 @@ bad things might happen.</property>
</object>
</child>
<child>
- <object class="GtkEntry">
+ <object class="GtkEntry" id="extra_info_entry">
<property name="placeholder-text">Tell me anything…</property>
+ <property name="progress-fraction">0.2</property>
</object>
</child>
<layout>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]