[gtk/focus-adjustment: 3/6] widget-factory: Make color swatches non-focusable



commit b5d11ad0af025e2c6ea9b5f39ee90fb46755545d
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 40ce3e286c..30e36d4b7c 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]