[Xfce4-commits] [xfce/xfce4-panel] 01/01: tasklist: Add styleclass to make life easier for themers
noreply at xfce.org
noreply at xfce.org
Mon Jun 12 20:36:06 CEST 2017
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit 0002aea58d02647a5ad3985190ff7f06a75724d0
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Mon Jun 12 20:35:14 2017 +0200
tasklist: Add styleclass to make life easier for themers
Gtk3 themes can now easily style the window buttons plugin by using
the .tasklist class.
e.g. ".tasklist button { color: red; }"
---
plugins/tasklist/tasklist-widget.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 87c182a..d75fc91 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -548,6 +548,8 @@ xfce_tasklist_class_init (XfceTasklistClass *klass)
static void
xfce_tasklist_init (XfceTasklist *tasklist)
{
+ GtkStyleContext *context;
+
gtk_widget_set_has_window (GTK_WIDGET (tasklist), FALSE);
tasklist->locked = 0;
@@ -588,6 +590,10 @@ xfce_tasklist_init (XfceTasklist *tasklist)
(GDestroyNotify) g_object_unref,
(GDestroyNotify) xfce_tasklist_group_button_remove);
+ /* add style class for the tasklist widget */
+ context = gtk_widget_get_style_context (GTK_WIDGET (tasklist));
+ gtk_style_context_add_class (context, "tasklist");
+
/* widgets for the overflow menu */
/* TODO support drag-motion and drag-leave */
tasklist->arrow_button = xfce_arrow_button_new (GTK_ARROW_DOWN);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list