Merge lp:~larsu/gnome-system-monitor/draw-graph-transparent-background into lp:~ubuntu-desktop/gnome-system-monitor/ubuntu

Proposed by Lars Karlitski
Status: Merged
Merged at revision: 61
Proposed branch: lp:~larsu/gnome-system-monitor/draw-graph-transparent-background
Merge into: lp:~ubuntu-desktop/gnome-system-monitor/ubuntu
Diff against target: 64 lines (+44/-0)
3 files modified
debian/changelog (+6/-0)
debian/patches/git_draw-transparent-background.patch (+37/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~larsu/gnome-system-monitor/draw-graph-transparent-background
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+236857@code.launchpad.net

Commit message

Add git_draw-transparent-background.patch

Description of the change

Add git_draw-transparent-background.patch

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-04-29 19:17:25 +0000
+++ debian/changelog 2014-10-02 11:34:50 +0000
@@ -1,3 +1,9 @@
1gnome-system-monitor (3.8.0-0ubuntu3) UNRELEASED; urgency=medium
2
3 * Add git_draw-transparent-background.patch
4
5 -- Lars Uebernickel <lars.uebernickel@ubuntu.com> Thu, 02 Oct 2014 13:31:52 +0200
6
1gnome-system-monitor (3.8.0-0ubuntu2) saucy; urgency=low7gnome-system-monitor (3.8.0-0ubuntu2) saucy; urgency=low
28
3 * Add 00git_logind_check.patch: Fix check for logind.9 * Add 00git_logind_check.patch: Fix check for logind.
410
=== added file 'debian/patches/git_draw-transparent-background.patch'
--- debian/patches/git_draw-transparent-background.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/git_draw-transparent-background.patch 2014-10-02 11:34:50 +0000
@@ -0,0 +1,37 @@
1Description: Draw graphs with transparent background
2
3Backport from upstream 6da63ee
4
5--- gnome-system-monitor-3.8.0.orig/src/load-graph.cpp
6+++ gnome-system-monitor-3.8.0/src/load-graph.cpp
7@@ -76,7 +76,7 @@ void draw_background(LoadGraph *graph) {
8 PangoLayout* layout;
9 PangoFontDescription* font_desc;
10 PangoRectangle extents;
11- GdkRGBA fg, bg;
12+ GdkRGBA fg;
13
14 num_bars = graph->num_bars();
15 graph->graph_dely = (graph->draw_height - 15) / num_bars; /* round to int to avoid AA blur */
16@@ -86,19 +86,15 @@ void draw_background(LoadGraph *graph) {
17
18 gtk_widget_get_allocation (graph->disp, &allocation);
19 graph->background = gdk_window_create_similar_surface (gtk_widget_get_window (graph->disp),
20- CAIRO_CONTENT_COLOR,
21+ CAIRO_CONTENT_COLOR_ALPHA,
22 allocation.width,
23 allocation.height);
24 cr = cairo_create (graph->background);
25
26 GtkStyleContext *context = gtk_widget_get_style_context (ProcmanApp::get()->notebook);
27- gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &bg);
28 gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &fg);
29
30- // set the background colour
31- gdk_cairo_set_source_rgba (cr, &bg);
32- cairo_paint (cr);
33-
34+ cairo_paint_with_alpha (cr, 0.0);
35 layout = pango_cairo_create_layout (cr);
36 font_desc = pango_font_description_copy (gtk_style_context_get_font (context, GTK_STATE_FLAG_NORMAL));
37 pango_font_description_set_size (font_desc, 0.8 * graph->fontsize * PANGO_SCALE);
038
=== modified file 'debian/patches/series'
--- debian/patches/series 2013-04-29 19:13:35 +0000
+++ debian/patches/series 2014-10-02 11:34:50 +0000
@@ -1,3 +1,4 @@
1# Debian patches for gnome-system-monitor1# Debian patches for gnome-system-monitor
200git_logind_check.patch200git_logind_check.patch
3quit-accel-fix3quit-accel-fix
4git_draw-transparent-background.patch

Subscribers

People subscribed via source and target branches