Merge lp:~seb128/gnome-control-center-unity/use-correct-color into lp:gnome-control-center-unity

Proposed by Sebastien Bacher
Status: Merged
Approved by: Michael Terry
Approved revision: 26
Merged at revision: 27
Proposed branch: lp:~seb128/gnome-control-center-unity/use-correct-color
Merge into: lp:gnome-control-center-unity
Diff against target: 22 lines (+3/-3)
1 file modified
appearance/cc-appearance-panel.c (+3/-3)
To merge this branch: bzr merge lp:~seb128/gnome-control-center-unity/use-correct-color
Reviewer Review Type Date Requested Status
Michael Terry Approve
PS Jenkins bot (community) continuous-integration Approve
Ken VanDine Pending
Unity Team Pending
Review via email: mp+168800@code.launchpad.net

Commit message

use the correct colors format for the background settings

libgnome-desktop is using GdkColor values but the code was writing GdkRGBA ones. The first one are deprecated but since that's what the other components want, that's what we should write.

Description of the change

use the correct colors format for the background settings

libgnome-desktop is using GdkColor values but the code was writing GdkRGBA ones. The first one are deprecated but since that's what the other components want, that's what we should write.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

GdkColor was what the gnome-control-center code we copied was using, it seems like the code was ported away from deprecated apis which confused other clients. That fix is not ideal, it would be better to fix libgnome-desktop (though that would be an incompatible change in the key format), but it fixes the issue

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michael Terry (mterry) wrote :

Looks fine. Thanks, Seb.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'appearance/cc-appearance-panel.c'
2--- appearance/cc-appearance-panel.c 2013-04-08 09:16:43 +0000
3+++ appearance/cc-appearance-panel.c 2013-06-11 20:02:23 +0000
4@@ -874,15 +874,15 @@
5 CcAppearancePanel *panel)
6 {
7 CcAppearancePanelPrivate *priv = panel->priv;
8- GdkRGBA color;
9+ GdkColor color;
10 gchar *value;
11 gboolean is_pcolor = FALSE;
12
13- gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (button), &color);
14+ gtk_color_button_get_color (button, &color);
15 if (WID ("style-pcolor") == GTK_WIDGET (button))
16 is_pcolor = TRUE;
17
18- value = gdk_rgba_to_string (&color);
19+ value = gdk_color_to_string (&color);
20
21 if (priv->current_background)
22 {

Subscribers

People subscribed via source and target branches

to all changes: