diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-04-11 22:28:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-04-11 22:28:15 -0400 |
commit | 0842d084dd30f578bf22f4b7c591dca3dce64613 (patch) | |
tree | 6d61ea96c3f92b4a384ac934ae5f9e720d0a9cc1 /gtk | |
parent | 838b25177f54d2d8aabb4ec2a125d38513cd8488 (diff) | |
download | gtk+-0842d084dd30f578bf22f4b7c591dca3dce64613.tar.gz |
inspector: Cometic fixes for controllers
Add a frame, and make the rows not activatable.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/inspector/controllers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/inspector/controllers.c b/gtk/inspector/controllers.c index 4fa0b313b8..deea5b866f 100644 --- a/gtk/inspector/controllers.c +++ b/gtk/inspector/controllers.c @@ -34,6 +34,7 @@ #include "gtksortlistmodel.h" #include "gtkwidgetprivate.h" #include "gtkstack.h" +#include "gtkstylecontext.h" enum { @@ -84,6 +85,7 @@ gtk_inspector_controllers_init (GtkInspectorControllers *sl) gtk_widget_set_vexpand (box, TRUE); sl->priv->listbox = gtk_list_box_new (); + gtk_style_context_add_class (gtk_widget_get_style_context (sl->priv->listbox), "frame"); gtk_widget_set_halign (sl->priv->listbox, GTK_ALIGN_CENTER); g_signal_connect (sl->priv->listbox, "row-activated", G_CALLBACK (row_activated), sl); gtk_list_box_set_selection_mode (GTK_LIST_BOX (sl->priv->listbox), GTK_SELECTION_NONE); @@ -118,6 +120,7 @@ create_controller_widget (gpointer item, GtkWidget *combo; row = gtk_list_box_row_new (); + gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 40); gtk_container_add (GTK_CONTAINER (row), box); g_object_set (box, "margin", 10, NULL); |