[gtk+] shortcuts: Add css names to some widgets
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] shortcuts: Add css names to some widgets
- Date: Sun, 8 Oct 2017 00:18:41 +0000 (UTC)
commit fee3d20e44d2b5cfb00a1aeda3f7ba26775ab2d6
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 7 20:12:18 2017 -0400
shortcuts: Add css names to some widgets
This will let us put some styling in place for these.
gtk/gtkshortcutsgroup.c | 2 ++
gtk/gtkshortcutssection.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkshortcutsgroup.c b/gtk/gtkshortcutsgroup.c
index d1775d9..5eda2d1 100644
--- a/gtk/gtkshortcutsgroup.c
+++ b/gtk/gtkshortcutsgroup.c
@@ -361,6 +361,8 @@ gtk_shortcuts_group_class_init (GtkShortcutsGroupClass *klass)
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, properties);
+
+ gtk_widget_class_set_css_name (widget_class, "shortcuts-group");
}
static void
diff --git a/gtk/gtkshortcutssection.c b/gtk/gtkshortcutssection.c
index ac1399b..527e35d 100644
--- a/gtk/gtkshortcutssection.c
+++ b/gtk/gtkshortcutssection.c
@@ -411,6 +411,7 @@ gtk_shortcuts_section_class_init (GtkShortcutsSectionClass *klass)
GDK_KEY_Page_Down, GDK_CONTROL_MASK,
"change-current-page", 1,
G_TYPE_INT, 1);
+ gtk_widget_class_set_css_name (widget_class, "shortcuts-section");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]