[gtk+] widget-factory: Improve touch selection example
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget-factory: Improve touch selection example
- Date: Tue, 9 Jun 2015 19:51:49 +0000 (UTC)
commit fe219a25b754feb6794bd2660e06796be1a75270
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 9 15:50:50 2015 -0400
widget-factory: Improve touch selection example
Make the check buttons not take focus on click, so the popover
stays open.
demos/widget-factory/widget-factory.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index be03612..2541ccd 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -1159,6 +1159,7 @@ add_item (GtkTextView *tv,
{
item = gtk_check_button_new ();
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (item), set);
+ gtk_button_set_focus_on_click (GTK_BUTTON (item), FALSE);
g_signal_connect (item, "clicked", G_CALLBACK (activate_item), tv);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]