After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 373116 - Migrate from GnomeColorPicker to GtkColorButton
Migrate from GnomeColorPicker to GtkColorButton
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
2.10.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on: 373117 380534
Blocks:
 
 
Reported: 2006-11-09 20:39 UTC by Matthew Barnes
Modified: 2013-09-13 00:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (38.17 KB, patch)
2006-11-09 21:43 UTC, Matthew Barnes
none Details | Review
Revised patch (47.02 KB, patch)
2006-11-11 15:15 UTC, Matthew Barnes
reviewed Details | Review
Revised patch (47.30 KB, patch)
2006-12-15 20:50 UTC, Matthew Barnes
committed Details | Review

Description Matthew Barnes 2006-11-09 20:39:28 UTC
Evolution is still using the deprecated GnomeColorPicker widget from libgnomeui [1].  GTK+ 2.4 introduced GtkColorButton [2] as a replacement, and the GTK+ documentation even provides a tutorial for migrating from GnomeColorPicker [3].

In the course of migrating the Evolution code I found ESource's way of storing colors to be cumbersome, so I've proposed a change to the libedataserver API.  See below for the bug number.


[1] http://developer.gnome.org/doc/API/2.0/libgnomeui/GnomeColorPicker.html
[2] http://developer.gnome.org/doc/API/2.0/gtk/GtkColorButton.html
[3] http://developer.gnome.org/doc/API/2.0/gtk/gtk-migrating-GtkColorButton.html
Comment 1 Matthew Barnes 2006-11-09 20:42:30 UTC
This bug depends on bug #373117 ("Change how ESource stores colors").
Comment 2 Matthew Barnes 2006-11-09 21:43:33 UTC
Created attachment 76300 [details] [review]
Proposed patch

This patch utilizes the ESource API changes described in bug #373117.
Comment 3 Matthew Barnes 2006-11-11 15:15:25 UTC
Created attachment 76393 [details] [review]
Revised patch

This revision fixes a few bugs in the original patch and polishes the code a bit more.  ecmt_value_to_string() in e-cal-model-tasks.c has a somewhat ugly hack (marked with XXX) which I plan to follow up on in a different bug.
Comment 4 Harish Krishnaswamy 2006-12-04 04:24:15 UTC
Please see my comments on bug #373117.
Comment 5 Matthew Barnes 2006-12-04 12:50:47 UTC
This bug requires clarification of Evolution's library requirements.
Please see bug #380354.
Comment 6 Matthew Barnes 2006-12-04 12:54:23 UTC
Sorry, that was supposed to be bug #380534.
Comment 7 Matthew Barnes 2006-12-15 20:50:21 UTC
Created attachment 78449 [details] [review]
Revised patch

Updated for evolution-2.9.3 as well as the latest revision of the ESource patch in bug #373117.
Comment 8 Matthew Barnes 2006-12-21 12:42:18 UTC
For future reference:

GTK+ 2.12 will have a new function called gdk_color_to_string() (bug #373856).  There are several places in the patch where such a function would be useful, so we should remember to re-visit these changes for Evolution 2.11/2.12.
Comment 9 Matthew Barnes 2007-02-20 13:47:00 UTC
Harish: Ping
Comment 10 Matthew Barnes 2007-03-31 04:29:12 UTC
Harish or Srini: Could one of you review this and bug #373117 please?
Comment 11 Srinivasa Ragavan 2007-04-01 19:22:38 UTC
Looks fine Matthew. Will this have any migration impact on filters? Just check that up. Fine otherwise to trunk.
Comment 12 Matthew Barnes 2007-04-02 00:29:06 UTC
Migration of filters is handled in filter/filter-colour.c:xml_decode().  First I try to read the new XML property "spec", and if that fails I fall back to reading the old "red", "green", and "blue" properties (ignoring "alpha").
Comment 13 Matthew Barnes 2007-04-02 04:24:00 UTC
Thanks for reviewing, Srini.

Committed to Subversion trunk, revision 33349.