Merge lp:~om26er/ubuntu/maverick/shotwell/shotwell-fix-669263 into lp:ubuntu/maverick/shotwell

Proposed by Omer Akram
Status: Needs review
Proposed branch: lp:~om26er/ubuntu/maverick/shotwell/shotwell-fix-669263
Merge into: lp:ubuntu/maverick/shotwell
Diff against target: 94 lines (+45/-3)
5 files modified
.pc/applied-patches (+1/-0)
debian/changelog (+7/-0)
debian/patches/30_left_pane_color.patch (+31/-0)
debian/patches/series (+1/-0)
src/LibraryWindow.vala (+5/-3)
To merge this branch: bzr merge lp:~om26er/ubuntu/maverick/shotwell/shotwell-fix-669263
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+48158@code.launchpad.net

Description of the change

this branch fixes bug 669263 the patch have been made to adapt for the stable series with the review from the nice yorba people on the lp bug report.

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Thanks for the patch! I think it looks good for an SRU, but I would like more details from the bug reporter to help people test. Specifically which gtk theme can be used to reproduce the bug.

review: Approve

Unmerged revisions

19. By Omer Akram

* debian/patches/30_left_pane_color.patch:
  - Use background color of sidebar from gtk theme. (LP: #669263)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.pc/applied-patches'
2--- .pc/applied-patches 2010-09-29 11:53:56 +0000
3+++ .pc/applied-patches 2011-02-01 13:52:55 +0000
4@@ -2,3 +2,4 @@
5 01_lpi.patch
6 02_desktop_gettext.patch
7 03_appmenu_no_stubs.patch
8+30_left_pane_color.patch
9
10=== modified file 'debian/changelog'
11--- debian/changelog 2010-09-29 11:53:56 +0000
12+++ debian/changelog 2011-02-01 13:52:55 +0000
13@@ -1,3 +1,10 @@
14+shotwell (0.7.2-0ubuntu2.1) maverick-proposed; urgency=low
15+
16+ * debian/patches/30_left_pane_color.patch:
17+ - Use background color of sidebar from gtk theme. (LP: #669263)
18+
19+ -- Omer Akram <om26er@ubuntu.com> Tue, 01 Feb 2011 18:44:37 +0500
20+
21 shotwell (0.7.2-0ubuntu2) maverick; urgency=low
22
23 * debian/patches/03_appmenu_no_stubs.patch:
24
25=== added file 'debian/patches/30_left_pane_color.patch'
26--- debian/patches/30_left_pane_color.patch 1970-01-01 00:00:00 +0000
27+++ debian/patches/30_left_pane_color.patch 2011-02-01 13:52:55 +0000
28@@ -0,0 +1,31 @@
29+From: Omer Akram <om26er@ubuntu.com>
30+Author: Eric Gregory <eric@yorba.org>
31+Subject: Use background color of sidebar from the theme.
32+Origin: http://trac.yorba.org/changeset/2370
33+Bug: http://trac.yorba.org/ticket/2483
34+Bug-Ubuntu: https://launchpad.net/bugs/669263
35+
36+--- a//src/LibraryWindow.vala 2010-09-11 03:55:55.000000000 +0500
37++++ b//src/LibraryWindow.vala 2011-01-31 22:49:49.155812733 +0500
38+@@ -83,6 +83,8 @@
39+ // special Yorba-selected sidebar background color for standard themes (humanity,
40+ // clearlooks, etc.); dark themes use the theme's native background color
41+ public static Gdk.Color SIDEBAR_STANDARD_BG_COLOR = parse_color("#EEE");
42++
43++ // Max brightness value to trigger SIDEBAR_STANDARD_BG_COLOR
44+ public const uint16 STANDARD_COMPONENT_MINIMUM = 0xf00;
45+
46+ private string import_dir = Environment.get_home_dir();
47+@@ -1359,9 +1361,9 @@
48+
49+ Gtk.Settings settings = Gtk.Settings.get_default();
50+ HashTable<string, Gdk.Color?> color_table = settings.color_hash;
51+- Gdk.Color? base_color = color_table.lookup("bg_color");
52+- if (base_color != null && (base_color.red > STANDARD_COMPONENT_MINIMUM ||
53+- base_color.green > STANDARD_COMPONENT_MINIMUM ||
54++ Gdk.Color? base_color = color_table.lookup("base_color");
55++ if (base_color != null && (base_color.red > STANDARD_COMPONENT_MINIMUM &&
56++ base_color.green > STANDARD_COMPONENT_MINIMUM &&
57+ base_color.blue > STANDARD_COMPONENT_MINIMUM)) {
58+ // if the current theme is a standard theme (as opposed to a dark theme), then
59+ // use the specially-selected Yorba muted background color for the sidebar.
60
61=== modified file 'debian/patches/series'
62--- debian/patches/series 2010-09-29 11:53:56 +0000
63+++ debian/patches/series 2011-02-01 13:52:55 +0000
64@@ -2,3 +2,4 @@
65 01_lpi.patch
66 02_desktop_gettext.patch
67 03_appmenu_no_stubs.patch
68+30_left_pane_color.patch
69
70=== modified file 'src/LibraryWindow.vala'
71--- src/LibraryWindow.vala 2010-09-13 23:24:06 +0000
72+++ src/LibraryWindow.vala 2011-02-01 13:52:55 +0000
73@@ -83,6 +83,8 @@
74 // special Yorba-selected sidebar background color for standard themes (humanity,
75 // clearlooks, etc.); dark themes use the theme's native background color
76 public static Gdk.Color SIDEBAR_STANDARD_BG_COLOR = parse_color("#EEE");
77+
78+ // Max brightness value to trigger SIDEBAR_STANDARD_BG_COLOR
79 public const uint16 STANDARD_COMPONENT_MINIMUM = 0xf00;
80
81 private string import_dir = Environment.get_home_dir();
82@@ -1359,9 +1361,9 @@
83
84 Gtk.Settings settings = Gtk.Settings.get_default();
85 HashTable<string, Gdk.Color?> color_table = settings.color_hash;
86- Gdk.Color? base_color = color_table.lookup("bg_color");
87- if (base_color != null && (base_color.red > STANDARD_COMPONENT_MINIMUM ||
88- base_color.green > STANDARD_COMPONENT_MINIMUM ||
89+ Gdk.Color? base_color = color_table.lookup("base_color");
90+ if (base_color != null && (base_color.red > STANDARD_COMPONENT_MINIMUM &&
91+ base_color.green > STANDARD_COMPONENT_MINIMUM &&
92 base_color.blue > STANDARD_COMPONENT_MINIMUM)) {
93 // if the current theme is a standard theme (as opposed to a dark theme), then
94 // use the specially-selected Yorba muted background color for the sidebar.

Subscribers

People subscribed via source and target branches

to all changes: