[gtk/focus-adjustment: 80/88] widget-factory: Make color swatches non-focusable
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/focus-adjustment: 80/88] widget-factory: Make color swatches non-focusable
- Date: Sat, 18 Apr 2020 19:00:57 +0000 (UTC)
commit 250036259a82862d137a9d96218c64212e2814fc
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Apr 16 17:11:06 2020 -0400
widget-factory: Make color swatches non-focusable
demos/widget-factory/widget-factory.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 8752760c88..e1dd9aaac3 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -839,6 +839,7 @@ overshot (GtkScrolledWindow *sw, GtkPositionType pos, GtkWidget *widget)
gdk_rgba_parse (&rgba, color);
swatch = g_object_new (g_type_from_name ("GtkColorSwatch"),
"rgba", &rgba,
+ "can-focus", FALSE,
"selectable", FALSE,
"halign", GTK_ALIGN_END,
"valign", GTK_ALIGN_CENTER,
@@ -957,6 +958,7 @@ populate_colors (GtkWidget *widget, GtkWidget *chooser)
swatch = g_object_new (g_type_from_name ("GtkColorSwatch"),
"rgba", &rgba,
"selectable", FALSE,
+ "can-focus", FALSE,
"halign", GTK_ALIGN_END,
"valign", GTK_ALIGN_CENTER,
"margin-start", 6,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]