wok-6.x view lxpanel/stuff/cpu-size-color.patch @ rev 24731
updated libdvdread and libdvdread-dev (6.0.2 -> 6.1.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 17:30:53 2022 +0100 (2022-03-15) |
parents | |
children |
line source
1 --- src/plugins/cpu/cpu.c
2 +++ src/plugins/cpu/cpu.c.taz
3 @@ -222,14 +222,14 @@
5 /* Allocate drawing area as a child of top level widget. Enable button press events. */
6 c->da = gtk_drawing_area_new();
7 - gtk_widget_set_size_request(c->da, 40, PANEL_HEIGHT_DEFAULT);
8 + gtk_widget_set_size_request(c->da, 26, PANEL_HEIGHT_DEFAULT);
9 gtk_widget_add_events(c->da, GDK_BUTTON_PRESS_MASK);
10 gtk_container_add(GTK_CONTAINER(p->pwid), c->da);
12 /* Clone a graphics context and set "green" as its foreground color.
13 * We will use this to draw the graph. */
14 c->graphics_context = gdk_gc_new(p->panel->topgwin->window);
15 - gdk_color_parse("green", &c->foreground_color);
16 + gdk_color_parse("#cfcfcf", &c->foreground_color);
17 gdk_colormap_alloc_color(gdk_drawable_get_colormap(p->panel->topgwin->window), &c->foreground_color, FALSE, TRUE);
18 gdk_gc_set_foreground(c->graphics_context, &c->foreground_color);