widget-factory: Improve touch selection example

Make the check buttons not take focus on click, so the popover
stays open.
This commit is contained in:
Matthias Clasen 2015-06-09 15:50:50 -04:00
parent 70f1e2306d
commit fe219a25b7

View File

@ -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);
}