wok rev 11932

lxpanel: Patch cpu plugin to get monochrome style
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 01 02:13:36 2012 +0100 (2012-03-01)
parents af696f5ac1e7
children 31dd0105be72
files lxpanel/receipt lxpanel/stuff/cpu-color.patch
line diff
     1.1 --- a/lxpanel/receipt	Thu Mar 01 02:34:58 2012 +0100
     1.2 +++ b/lxpanel/receipt	Thu Mar 01 02:13:36 2012 +0100
     1.3 @@ -23,6 +23,7 @@
     1.4  	# Devnote : this patch shouldn't be necessary in next release of lxpanel (current : 0.5.8).
     1.5  	patch -p1 -i $stuff/configure_desktop_number.patch
     1.6  	patch -p1 -i $stuff/fix_position.patch
     1.7 +	patch -p0 -i $stuff/cpu.patch || exit 1
     1.8  	./configure --with-plugins=all $CONFIGURE_ARGS &&
     1.9  	make && make install
    1.10  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/lxpanel/stuff/cpu-color.patch	Thu Mar 01 02:13:36 2012 +0100
     2.3 @@ -0,0 +1,11 @@
     2.4 +--- src/plugins/cpu/cpu.c
     2.5 ++++ src/plugins/cpu/cpu.c.taz
     2.6 +@@ -229,7 +229,7 @@
     2.7 +     /* Clone a graphics context and set "green" as its foreground color.
     2.8 +      * We will use this to draw the graph. */
     2.9 +     c->graphics_context = gdk_gc_new(p->panel->topgwin->window);
    2.10 +-    gdk_color_parse("green",  &c->foreground_color);
    2.11 ++    gdk_color_parse("#cfcfcf",  &c->foreground_color);
    2.12 +     gdk_colormap_alloc_color(gdk_drawable_get_colormap(p->panel->topgwin->window), &c->foreground_color, FALSE, TRUE);
    2.13 +     gdk_gc_set_foreground(c->graphics_context, &c->foreground_color);
    2.14 +