[gtk+] widget-factory: Make the circular button do something
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget-factory: Make the circular button do something
- Date: Mon, 15 Jun 2015 01:38:17 +0000 (UTC)
commit fa29a01c26e078b0ef486c1083e41ed7a0c1536e
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 14 21:37:58 2015 -0400
widget-factory: Make the circular button do something
demos/widget-factory/widget-factory.c | 2 ++
demos/widget-factory/widget-factory.ui | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 9f93a29..76bc11f 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -1364,6 +1364,8 @@ activate (GApplication *app)
g_signal_connect (dialog, "response", G_CALLBACK (close_dialog), NULL);
widget = (GtkWidget *)gtk_builder_get_object (builder, "preference_dialog_button");
g_signal_connect (widget, "clicked", G_CALLBACK (show_dialog), dialog);
+ widget = (GtkWidget *)gtk_builder_get_object (builder, "circular_button");
+ g_signal_connect (widget, "clicked", G_CALLBACK (show_dialog), dialog);
dialog = (GtkWidget *)gtk_builder_get_object (builder, "selection_dialog");
widget = (GtkWidget *)gtk_builder_get_object (builder, "text3");
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 31a110b..a0b78d3 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -2999,7 +2999,7 @@ microphone-sensitivity-medium-symbolic</property>
</object>
</child>
<child>
- <object class="GtkButton">
+ <object class="GtkButton" id="circular_button">
<property name="visible">True</property>
<style>
<class name="image-button"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]