[gnome-panel] libgnome-panel: use applet id as style class



commit e705b8ed171d3ed6a1f41708b732e289090e0160
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Jul 31 12:58:00 2017 +0300

    libgnome-panel: use applet id as style class

 libgnome-panel/gp-applet.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-panel/gp-applet.c b/libgnome-panel/gp-applet.c
index bb473e0..a9e0bc5 100644
--- a/libgnome-panel/gp-applet.c
+++ b/libgnome-panel/gp-applet.c
@@ -175,6 +175,7 @@ gp_applet_constructed (GObject *object)
   GpApplet *applet;
   GpAppletPrivate *priv;
   GActionGroup *group;
+  GtkStyleContext *context;
 
   G_OBJECT_CLASS (gp_applet_parent_class)->constructed (object);
 
@@ -185,6 +186,9 @@ gp_applet_constructed (GObject *object)
 
   group = G_ACTION_GROUP (priv->action_group);
   gtk_widget_insert_action_group (GTK_WIDGET (applet), priv->id, group);
+
+  context = gtk_widget_get_style_context (GTK_WIDGET (applet));
+  gtk_style_context_add_class (context, priv->id);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]