wok-current annotate lxpanel/stuff/cpu-size-color.patch @ rev 16831
Add system-tools-backends, liboobs.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jul 12 14:33:02 2014 +0300 (2014-07-12) |
parents | |
children |
rev | line source |
---|---|
pankso@11955 | 1 --- src/plugins/cpu/cpu.c |
pankso@11955 | 2 +++ src/plugins/cpu/cpu.c.taz |
pankso@11955 | 3 @@ -222,14 +222,14 @@ |
pankso@11955 | 4 |
pankso@11955 | 5 /* Allocate drawing area as a child of top level widget. Enable button press events. */ |
pankso@11955 | 6 c->da = gtk_drawing_area_new(); |
pankso@11955 | 7 - gtk_widget_set_size_request(c->da, 40, PANEL_HEIGHT_DEFAULT); |
pankso@11955 | 8 + gtk_widget_set_size_request(c->da, 26, PANEL_HEIGHT_DEFAULT); |
pankso@11955 | 9 gtk_widget_add_events(c->da, GDK_BUTTON_PRESS_MASK); |
pankso@11955 | 10 gtk_container_add(GTK_CONTAINER(p->pwid), c->da); |
pankso@11955 | 11 |
pankso@11955 | 12 /* Clone a graphics context and set "green" as its foreground color. |
pankso@11955 | 13 * We will use this to draw the graph. */ |
pankso@11955 | 14 c->graphics_context = gdk_gc_new(p->panel->topgwin->window); |
pankso@11955 | 15 - gdk_color_parse("green", &c->foreground_color); |
pankso@11955 | 16 + gdk_color_parse("#cfcfcf", &c->foreground_color); |
pankso@11955 | 17 gdk_colormap_alloc_color(gdk_drawable_get_colormap(p->panel->topgwin->window), &c->foreground_color, FALSE, TRUE); |
pankso@11955 | 18 gdk_gc_set_foreground(c->graphics_context, &c->foreground_color); |
pankso@11955 | 19 |