[gtk+] Shortcuts window: Make search results themable
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Shortcuts window: Make search results themable
- Date: Sun, 8 Oct 2017 02:46:25 +0000 (UTC)
commit c9eab362166de971279bdadb4c1eecf3ae54c73d
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 7 22:45:05 2017 -0400
Shortcuts window: Make search results themable
Add a style class to the box containing search results,
so we can apply style here.
gtk/gtkshortcutswindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c
index 05b8f93..d5600ed 100644
--- a/gtk/gtkshortcutswindow.c
+++ b/gtk/gtkshortcutswindow.c
@@ -976,9 +976,9 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self)
NULL);
box = g_object_new (GTK_TYPE_BOX,
"halign", GTK_ALIGN_CENTER,
- "spacing", 24,
"orientation", GTK_ORIENTATION_VERTICAL,
NULL);
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (box)), "shortcuts-search-results");
gtk_container_add (GTK_CONTAINER (scroller), GTK_WIDGET (box));
gtk_stack_add_named (priv->stack, scroller, "internal-search");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]