summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcutlabel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-10-28 07:10:30 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-10-28 10:19:00 -0400
commit62ec4a2415bc463c6b07dbcbf4baa1770f14019f (patch)
treec82fe57f323d0a5ef4e429cc3f0393a77d6aeb0c /gtk/gtkshortcutlabel.c
parent4e950da4d116663cfd5f1a707a96782f80499af8 (diff)
downloadgtk+-62ec4a2415bc463c6b07dbcbf4baa1770f14019f.tar.gz
shortcuts label: Redo the keycap theming
Use a style class directly on the frame. This is easier to reuse.
Diffstat (limited to 'gtk/gtkshortcutlabel.c')
-rw-r--r--gtk/gtkshortcutlabel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkshortcutlabel.c b/gtk/gtkshortcutlabel.c
index 907761c88b..12f14678b7 100644
--- a/gtk/gtkshortcutlabel.c
+++ b/gtk/gtkshortcutlabel.c
@@ -175,6 +175,7 @@ display_shortcut (GtkContainer *self,
gtk_container_add (self, dim_label ("+"));
frame = gtk_frame_new (NULL);
+ gtk_style_context_add_class (gtk_widget_get_style_context (frame), "keycap");
gtk_widget_show (frame);
gtk_container_add (self, frame);