Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
xfce4-panel-plugin-diskperf
xfce4-panel-plugin-diskperf-fix-transparency-co...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfce4-panel-plugin-diskperf-fix-transparency-colors.patch of Package xfce4-panel-plugin-diskperf
From 4d708bb4d2754328c0da6fe62a5b17b579c6f4c8 Mon Sep 17 00:00:00 2001 From: Florian Rivoal <frivoal@xfce.org> Date: Sat, 26 Feb 2011 10:48:30 +0000 Subject: Appearance improvements Fixes transparency and bar colors, thanks to the patch from bug #7342. --- diff --git a/panel-plugin/main.c b/panel-plugin/main.c index d6ff862..43b0390 100644 --- a/panel-plugin/main.c +++ b/panel-plugin/main.c @@ -293,14 +293,15 @@ static int SetSingleBarColor (struct diskperf_t *p_poPlugin, int p_iBar) Widget_t *pwBar; pwBar = poMonitor->aoPerfBar[p_iBar].pwBar; - poStyle = gtk_widget_get_modifier_style (GTK_WIDGET (*pwBar)); - if (!poStyle) - poStyle = gtk_rc_style_new (); - else { - poStyle->color_flags[GTK_STATE_PRELIGHT] |= GTK_RC_BG; - poStyle->bg[GTK_STATE_PRELIGHT] = poConf->aoColor[p_iBar]; - } - gtk_widget_modify_style (GTK_WIDGET (*pwBar), poStyle); + gtk_widget_modify_bg(GTK_WIDGET(*pwBar), + GTK_STATE_PRELIGHT, + &poConf->aoColor[p_iBar]); + gtk_widget_modify_bg(GTK_WIDGET(*pwBar), + GTK_STATE_SELECTED, + &poConf->aoColor[p_iBar]); + gtk_widget_modify_base(GTK_WIDGET(*pwBar), + GTK_STATE_SELECTED, + &poConf->aoColor[p_iBar]); return (0); } /* SetSingleBarColor() */ -- cgit
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor