- Bump eds_base_version to 1.12. - Add patch to fix implicit function declarations. - Remove patch for RH bug #203058 (fixed upstream). - Remove patch for RH bug #210142 (fixed upstream). - Remove patch for RH bug #235290 (fixed upstream). - Remove patch for GNOME bug #360240 (fixed upstream). - Remove patch for GNOME bug #360619 (fixed upstream). - Remove patch for GNOME bug #373117 (fixed upstream). - Revise patch for GNOME bug #415891 (partially fixed upstream).f41
parent
cf61009472
commit
8edc3aba21
@ -1 +1 @@
|
||||
evolution-data-server-1.10.1.tar.bz2
|
||||
evolution-data-server-1.11.2.tar.bz2
|
||||
|
@ -1,33 +0,0 @@
|
||||
--- evolution-data-server-1.10.1/camel/providers/pop3/camel-pop3-store.c.apop-auth-vulnerability 2007-04-09 08:42:37.000000000 -0400
|
||||
+++ evolution-data-server-1.10.1/camel/providers/pop3/camel-pop3-store.c 2007-04-30 16:42:12.000000000 -0400
|
||||
@@ -34,6 +34,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
+#include <ctype.h>
|
||||
|
||||
#include "camel-operation.h"
|
||||
|
||||
@@ -489,7 +490,21 @@
|
||||
} else if (strcmp(service->url->authmech, "+APOP") == 0 && store->engine->apop) {
|
||||
char *secret, md5asc[33], *d;
|
||||
unsigned char md5sum[16], *s;
|
||||
-
|
||||
+
|
||||
+ d = store->engine->apop;
|
||||
+
|
||||
+ while (*d != '\0') {
|
||||
+ if (!isascii((int)*d)) {
|
||||
+
|
||||
+ camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID,
|
||||
+ _("Unable to connect to POP server %s: "),
|
||||
+ CAMEL_SERVICE (store)->url->host);
|
||||
+
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+ d++;
|
||||
+ }
|
||||
+
|
||||
secret = g_alloca(strlen(store->engine->apop)+strlen(service->url->passwd)+1);
|
||||
sprintf(secret, "%s%s", store->engine->apop, service->url->passwd);
|
||||
md5_get_digest(secret, strlen (secret), md5sum);
|
@ -1,10 +0,0 @@
|
||||
--- evolution-data-server-1.10.1/libedataserver/e-source-group.c.e-source-group 2007-05-07 15:28:33.000000000 -0400
|
||||
+++ evolution-data-server-1.10.1/libedataserver/e-source-group.c 2007-05-07 15:28:49.000000000 -0400
|
||||
@@ -230,6 +230,7 @@
|
||||
|
||||
if (new_source == NULL) {
|
||||
g_object_unref (new);
|
||||
+ new = NULL;
|
||||
goto done;
|
||||
}
|
||||
e_source_group_add_source (new, new_source, -1);
|
@ -0,0 +1,10 @@
|
||||
--- evolution-data-server-1.11.2/calendar/libical/src/libical/icalvalue.c.implicit-function-declarations 2007-05-18 11:37:00.000000000 -0400
|
||||
+++ evolution-data-server-1.11.2/calendar/libical/src/libical/icalvalue.c 2007-05-18 11:38:53.000000000 -0400
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <stdlib.h> /* for atoi and atof */
|
||||
#include <limits.h> /* for SHRT_MAX */
|
||||
#include <locale.h>
|
||||
+#include <ctype.h> /* for isspace and isdigit */
|
||||
|
||||
#ifdef WIN32
|
||||
#define snprintf _snprintf
|
@ -1,28 +0,0 @@
|
||||
--- evolution-data-server-1.8.1/camel/providers/groupwise/camel-groupwise-folder.c.warn-unused-variable 2006-09-02 02:36:55.000000000 -0400
|
||||
+++ evolution-data-server-1.8.1/camel/providers/groupwise/camel-groupwise-folder.c 2006-10-08 22:09:18.000000000 -0400
|
||||
@@ -1137,7 +1137,6 @@
|
||||
CamelGroupwiseFolder *gw_folder = CAMEL_GROUPWISE_FOLDER(folder);
|
||||
CamelGroupwiseStorePrivate *priv = gw_store->priv;
|
||||
EGwConnection *cnc = cnc_lookup (priv);
|
||||
- GSList *attach_list = NULL;
|
||||
guint32 item_status, status_flags = 0;
|
||||
CamelFolderChangeInfo *changes = NULL;
|
||||
gboolean exists = FALSE;
|
||||
@@ -1369,7 +1368,6 @@
|
||||
{
|
||||
CamelGroupwiseMessageInfo *mi = NULL;
|
||||
CamelGroupwiseStore *gw_store = CAMEL_GROUPWISE_STORE (folder->parent_store);
|
||||
- GSList *attach_list = NULL;
|
||||
guint32 item_status, status_flags = 0;
|
||||
CamelFolderChangeInfo *changes = NULL;
|
||||
gboolean exists = FALSE;
|
||||
--- evolution-data-server-1.8.1/camel/camel-stream-vfs.c.warn-unused-variable 2006-09-02 02:36:54.000000000 -0400
|
||||
+++ evolution-data-server-1.8.1/camel/camel-stream-vfs.c 2006-10-08 22:09:18.000000000 -0400
|
||||
@@ -121,7 +121,6 @@
|
||||
{
|
||||
CamelStreamVFS *stream_vfs;
|
||||
off_t offset;
|
||||
- GnomeVFSResult result;
|
||||
|
||||
if (!handle)
|
||||
return NULL;
|
@ -1,45 +0,0 @@
|
||||
--- evolution-data-server-1.9.2/libedataserverui/e-name-selector-dialog.c.fix-name-selector-dialog 2006-11-08 11:23:52.000000000 -0500
|
||||
+++ evolution-data-server-1.9.2/libedataserverui/e-name-selector-dialog.c 2006-11-08 11:45:54.000000000 -0500
|
||||
@@ -1189,30 +1189,24 @@
|
||||
{
|
||||
EDestinationStore *destination_store = E_DESTINATION_STORE (model);
|
||||
EDestination *destination;
|
||||
- gchar *string;
|
||||
+ GString *buffer;
|
||||
|
||||
destination = e_destination_store_get_destination (destination_store, iter);
|
||||
g_assert (destination);
|
||||
|
||||
- if (e_destination_is_evolution_list (destination)) {
|
||||
- if (e_destination_list_show_addresses (destination)) {
|
||||
- const gchar *name;
|
||||
- const gchar *addresses;
|
||||
-
|
||||
- name = e_destination_get_name (destination);
|
||||
- addresses = e_destination_get_address (destination);
|
||||
-
|
||||
- string = g_strdup_printf ("%s%s(%s)", name ? name : "",
|
||||
- name ? " " : "", addresses ? addresses : "?");
|
||||
- } else {
|
||||
- string = g_strdup (e_destination_get_name (destination));
|
||||
- }
|
||||
- } else {
|
||||
- string = g_strdup (e_destination_get_address (destination));
|
||||
+ buffer = g_string_new (e_destination_get_name (destination));
|
||||
+
|
||||
+ if (!e_destination_is_evolution_list (destination)) {
|
||||
+ const gchar *email;
|
||||
+
|
||||
+ email = e_destination_get_email (destination);
|
||||
+ if (email == NULL || *email == '\0')
|
||||
+ email = "?";
|
||||
+ g_string_append_printf (buffer, " <%s>", email);
|
||||
}
|
||||
|
||||
- g_object_set (cell, "text", string, NULL);
|
||||
- g_free (string);
|
||||
+ g_object_set (cell, "text", buffer->str, NULL);
|
||||
+ g_string_free (buffer, TRUE);
|
||||
}
|
||||
|
||||
/* ----------------------- *
|
@ -1,28 +0,0 @@
|
||||
--- evolution-data-server-1.9.2/libedataserver/e-data-server-util.c.strftime 2006-11-09 22:40:39.000000000 -0500
|
||||
+++ evolution-data-server-1.9.2/libedataserver/e-data-server-util.c 2006-11-09 22:43:54.000000000 -0500
|
||||
@@ -335,11 +335,11 @@
|
||||
**/
|
||||
size_t e_strftime(char *s, size_t max, const char *fmt, const struct tm *tm)
|
||||
{
|
||||
+ size_t ret;
|
||||
#ifdef HAVE_LKSTRFTIME
|
||||
- return strftime(s, max, fmt, tm);
|
||||
+ ret = strftime(s, max, fmt, tm);
|
||||
#else
|
||||
char *c, *ffmt, *ff;
|
||||
- size_t ret;
|
||||
|
||||
ffmt = g_strdup(fmt);
|
||||
ff = ffmt;
|
||||
@@ -365,8 +365,10 @@
|
||||
|
||||
ret = strftime(s, max, ffmt, tm);
|
||||
g_free(ffmt);
|
||||
- return ret;
|
||||
#endif
|
||||
+ if (ret == 0 && max > 0)
|
||||
+ s[0] = '\0';
|
||||
+ return ret;
|
||||
}
|
||||
|
||||
/**
|
@ -1,392 +0,0 @@
|
||||
--- evolution-data-server-1.9.3/libedataserverui/e-source-selector.c.e-source-color 2006-04-26 04:21:21.000000000 -0400
|
||||
+++ evolution-data-server-1.9.3/libedataserverui/e-source-selector.c 2006-12-15 16:02:47.000000000 -0500
|
||||
@@ -411,15 +411,24 @@
|
||||
NULL);
|
||||
} else {
|
||||
ESource *source;
|
||||
- guint32 color;
|
||||
GdkPixbuf *pixbuf = NULL;
|
||||
+ const gchar *color_spec;
|
||||
+ GdkColor color;
|
||||
|
||||
g_assert (E_IS_SOURCE (data));
|
||||
source = E_SOURCE (data);
|
||||
|
||||
- if (e_source_get_color (source, &color)) {
|
||||
+ color_spec = e_source_peek_color_spec (source);
|
||||
+ if (color_spec != NULL && gdk_color_parse (color_spec, &color)) {
|
||||
+ guint32 rgba;
|
||||
+
|
||||
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 16, 16);
|
||||
- gdk_pixbuf_fill (pixbuf, color << 8);
|
||||
+
|
||||
+ rgba = (((color.red & 0xff00) << 8) |
|
||||
+ ((color.green & 0xff00)) |
|
||||
+ ((color.blue & 0xff00) >> 8)) << 8;
|
||||
+
|
||||
+ gdk_pixbuf_fill (pixbuf, rgba);
|
||||
}
|
||||
|
||||
g_object_set (renderer,
|
||||
--- evolution-data-server-1.9.3/libedataserver/e-source.h.e-source-color 2005-08-31 00:26:10.000000000 -0400
|
||||
+++ evolution-data-server-1.9.3/libedataserver/e-source.h 2006-12-15 16:02:47.000000000 -0500
|
||||
@@ -82,20 +82,27 @@
|
||||
const char *relative_uri);
|
||||
void e_source_set_absolute_uri (ESource *source,
|
||||
const char *absolute_uri);
|
||||
+void e_source_set_color_spec (ESource *source,
|
||||
+ const gchar *color_spec);
|
||||
void e_source_set_readonly (ESource *source,
|
||||
gboolean readonly);
|
||||
+#ifndef EDS_DISABLE_DEPRECATED
|
||||
void e_source_set_color (ESource *source,
|
||||
guint32 color);
|
||||
void e_source_unset_color (ESource *source);
|
||||
+#endif
|
||||
|
||||
ESourceGroup *e_source_peek_group (ESource *source);
|
||||
const char *e_source_peek_uid (ESource *source);
|
||||
const char *e_source_peek_name (ESource *source);
|
||||
const char *e_source_peek_relative_uri (ESource *source);
|
||||
const char *e_source_peek_absolute_uri (ESource *source);
|
||||
+const char *e_source_peek_color_spec (ESource *source);
|
||||
gboolean e_source_get_readonly (ESource *source);
|
||||
+#ifndef EDS_DISABLE_DEPRECATED
|
||||
gboolean e_source_get_color (ESource *source,
|
||||
guint32 *color_return);
|
||||
+#endif
|
||||
|
||||
char *e_source_get_uri (ESource *source);
|
||||
|
||||
--- evolution-data-server-1.9.3/libedataserver/e-source.c.e-source-color 2006-08-03 07:29:44.000000000 -0400
|
||||
+++ evolution-data-server-1.9.3/libedataserver/e-source.c 2006-12-15 16:02:47.000000000 -0500
|
||||
@@ -32,10 +32,6 @@
|
||||
#define ES_CLASS(obj) E_SOURCE_CLASS (G_OBJECT_GET_CLASS (obj))
|
||||
|
||||
|
||||
-/* String used to put the color in the XML. */
|
||||
-#define COLOR_FORMAT_STRING "%06x"
|
||||
-
|
||||
-
|
||||
/* Private members. */
|
||||
|
||||
struct _ESourcePrivate {
|
||||
@@ -48,8 +44,7 @@
|
||||
|
||||
gboolean readonly;
|
||||
|
||||
- gboolean has_color;
|
||||
- guint32 color;
|
||||
+ gchar *color_spec;
|
||||
|
||||
GHashTable *properties;
|
||||
};
|
||||
@@ -89,6 +84,7 @@
|
||||
g_free (priv->name);
|
||||
g_free (priv->relative_uri);
|
||||
g_free (priv->absolute_uri);
|
||||
+ g_free (priv->color_spec);
|
||||
|
||||
g_hash_table_destroy (priv->properties);
|
||||
|
||||
@@ -143,6 +139,28 @@
|
||||
g_free, g_free);
|
||||
}
|
||||
|
||||
+/* Private methods. */
|
||||
+
|
||||
+static gboolean
|
||||
+set_color_spec (ESource *source,
|
||||
+ const gchar *color_spec)
|
||||
+{
|
||||
+ ESourcePrivate *priv = source->priv;
|
||||
+ gboolean do_cmp;
|
||||
+
|
||||
+ if (color_spec == priv->color_spec)
|
||||
+ return FALSE;
|
||||
+
|
||||
+ do_cmp = (color_spec != NULL && priv->color_spec != NULL);
|
||||
+ if (do_cmp && g_ascii_strcasecmp (color_spec, priv->color_spec) == 0)
|
||||
+ return FALSE;
|
||||
+
|
||||
+ g_free (priv->color_spec);
|
||||
+ priv->color_spec = g_strdup (color_spec);
|
||||
+
|
||||
+ return TRUE;
|
||||
+}
|
||||
+
|
||||
/* Public methods. */
|
||||
|
||||
ESource *
|
||||
@@ -300,19 +318,22 @@
|
||||
xmlChar *name;
|
||||
xmlChar *relative_uri;
|
||||
xmlChar *absolute_uri;
|
||||
- xmlChar *color_string;
|
||||
- gboolean retval;
|
||||
+ xmlChar *color_spec;
|
||||
+ xmlChar *color;
|
||||
+ gboolean retval = FALSE;
|
||||
gboolean changed = FALSE;
|
||||
|
||||
name = xmlGetProp (node, "name");
|
||||
relative_uri = xmlGetProp (node, "relative_uri");
|
||||
absolute_uri = xmlGetProp (node, "uri");
|
||||
- color_string = xmlGetProp (node, "color");
|
||||
+ color_spec = xmlGetProp (node, "color_spec");
|
||||
+ color = xmlGetProp (node, "color"); /* obsolete */
|
||||
|
||||
- if (name == NULL || (relative_uri == NULL && absolute_uri == NULL)) {
|
||||
- retval = FALSE;
|
||||
+ if (name == NULL || (relative_uri == NULL && absolute_uri == NULL))
|
||||
+ goto done;
|
||||
+
|
||||
+ if (color_spec != NULL && color != NULL)
|
||||
goto done;
|
||||
- }
|
||||
|
||||
if (source->priv->name == NULL
|
||||
|| strcmp (name, source->priv->name) != 0
|
||||
@@ -334,21 +355,15 @@
|
||||
changed = TRUE;
|
||||
}
|
||||
|
||||
- if (color_string == NULL) {
|
||||
- if (source->priv->has_color) {
|
||||
- source->priv->has_color = FALSE;
|
||||
- changed = TRUE;
|
||||
- }
|
||||
+ if (color == NULL) {
|
||||
+ /* It is okay for color_spec to be NULL. */
|
||||
+ changed |= set_color_spec (source, color_spec);
|
||||
} else {
|
||||
- guint32 color = 0;
|
||||
-
|
||||
- sscanf (color_string, COLOR_FORMAT_STRING, &color);
|
||||
- if (! source->priv->has_color || source->priv->color != color) {
|
||||
- source->priv->has_color = TRUE;
|
||||
- source->priv->color = color;
|
||||
- changed = TRUE;
|
||||
- }
|
||||
+ gchar buffer[8];
|
||||
+ g_snprintf (buffer, sizeof (buffer), "#%s", color);
|
||||
+ changed |= set_color_spec (source, buffer);
|
||||
}
|
||||
+
|
||||
if (g_hash_table_size (source->priv->properties) && !node->children) {
|
||||
g_hash_table_destroy (source->priv->properties);
|
||||
source->priv->properties = g_hash_table_new_full (g_str_hash, g_str_equal,
|
||||
@@ -387,8 +402,8 @@
|
||||
xmlFree (relative_uri);
|
||||
if (absolute_uri != NULL)
|
||||
xmlFree (absolute_uri);
|
||||
- if (color_string != NULL)
|
||||
- xmlFree (color_string);
|
||||
+ if (color_spec != NULL)
|
||||
+ xmlFree (color_spec);
|
||||
|
||||
return retval;
|
||||
}
|
||||
@@ -552,18 +567,12 @@
|
||||
e_source_set_color (ESource *source,
|
||||
guint32 color)
|
||||
{
|
||||
- g_return_if_fail (E_IS_SOURCE (source));
|
||||
+ gchar color_spec[8];
|
||||
|
||||
- if (source->priv->readonly)
|
||||
- return;
|
||||
-
|
||||
- if (source->priv->has_color && source->priv->color == color)
|
||||
- return;
|
||||
-
|
||||
- source->priv->has_color = TRUE;
|
||||
- source->priv->color = color;
|
||||
+ g_return_if_fail (E_IS_SOURCE (source));
|
||||
|
||||
- g_signal_emit (source, signals[CHANGED], 0);
|
||||
+ g_snprintf (color_spec, sizeof (color_spec), "#%06x", color);
|
||||
+ e_source_set_color_spec (source, color_spec);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -571,13 +580,29 @@
|
||||
{
|
||||
g_return_if_fail (E_IS_SOURCE (source));
|
||||
|
||||
- if (! source->priv->has_color)
|
||||
- return;
|
||||
-
|
||||
- source->priv->has_color = FALSE;
|
||||
- g_signal_emit (source, signals[CHANGED], 0);
|
||||
+ e_source_set_color_spec (source, NULL);
|
||||
}
|
||||
|
||||
+/**
|
||||
+ * e_source_set_color_spec:
|
||||
+ * @source: an ESource
|
||||
+ * @color_spec: a string specifying the color
|
||||
+ *
|
||||
+ * Store a textual representation of a color in @source. The @color_spec
|
||||
+ * string should be parsable by #gdk_color_parse(), or %NULL to unset the
|
||||
+ * color in @source.
|
||||
+ *
|
||||
+ * Since: 1.10
|
||||
+ **/
|
||||
+void
|
||||
+e_source_set_color_spec (ESource *source,
|
||||
+ const gchar *color_spec)
|
||||
+{
|
||||
+ g_return_if_fail (E_IS_SOURCE (source));
|
||||
+
|
||||
+ if (!source->priv->readonly && set_color_spec (source, color_spec))
|
||||
+ g_signal_emit (source, signals[CHANGED], 0);
|
||||
+}
|
||||
|
||||
ESourceGroup *
|
||||
e_source_peek_group (ESource *source)
|
||||
@@ -619,6 +644,25 @@
|
||||
return source->priv->absolute_uri;
|
||||
}
|
||||
|
||||
+/**
|
||||
+ * e_source_peek_color_spec:
|
||||
+ * @source: an ESource
|
||||
+ *
|
||||
+ * Return the textual representation of the color for @source, or %NULL if it
|
||||
+ * has none. The returned string should be parsable by #gdk_color_parse().
|
||||
+ *
|
||||
+ * Return value: a string specifying the color
|
||||
+ *
|
||||
+ * Since: 1.10
|
||||
+ **/
|
||||
+const char *
|
||||
+e_source_peek_color_spec (ESource *source)
|
||||
+{
|
||||
+ g_return_val_if_fail (E_IS_SOURCE (source), NULL);
|
||||
+
|
||||
+ return source->priv->color_spec;
|
||||
+}
|
||||
+
|
||||
gboolean
|
||||
e_source_get_readonly (ESource *source)
|
||||
{
|
||||
@@ -643,13 +687,21 @@
|
||||
e_source_get_color (ESource *source,
|
||||
guint32 *color_return)
|
||||
{
|
||||
+ const gchar *color_spec;
|
||||
+ guint32 color;
|
||||
+
|
||||
g_return_val_if_fail (E_IS_SOURCE (source), FALSE);
|
||||
|
||||
- if (! source->priv->has_color)
|
||||
+ color_spec = e_source_peek_color_spec (source);
|
||||
+
|
||||
+ if (color_spec == NULL)
|
||||
+ return FALSE;
|
||||
+
|
||||
+ if (sscanf (color_spec, "#%06x", &color) != 1)
|
||||
return FALSE;
|
||||
|
||||
if (color_return != NULL)
|
||||
- *color_return = source->priv->color;
|
||||
+ *color_return = color;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -689,8 +741,6 @@
|
||||
xmlNodePtr parent_node)
|
||||
{
|
||||
ESourcePrivate *priv;
|
||||
- gboolean has_color;
|
||||
- guint32 color;
|
||||
xmlNodePtr node;
|
||||
const char *abs_uri = NULL, *relative_uri = NULL;
|
||||
|
||||
@@ -709,13 +759,9 @@
|
||||
xmlSetProp (node, "uri", abs_uri);
|
||||
if (relative_uri)
|
||||
xmlSetProp (node, "relative_uri", relative_uri);
|
||||
-
|
||||
- has_color = e_source_get_color (source, &color);
|
||||
- if (has_color) {
|
||||
- char *color_string = g_strdup_printf (COLOR_FORMAT_STRING, color);
|
||||
- xmlSetProp (node, "color", color_string);
|
||||
- g_free (color_string);
|
||||
- }
|
||||
+
|
||||
+ if (priv->color_spec != NULL)
|
||||
+ xmlSetProp (node, "color_spec", priv->color_spec);
|
||||
|
||||
if (g_hash_table_size (priv->properties) != 0) {
|
||||
xmlNodePtr properties_node;
|
||||
@@ -848,7 +894,6 @@
|
||||
e_source_copy (ESource *source)
|
||||
{
|
||||
ESource *new_source;
|
||||
- guint32 color;
|
||||
|
||||
g_return_val_if_fail (E_IS_SOURCE (source), NULL);
|
||||
|
||||
@@ -857,8 +902,7 @@
|
||||
|
||||
e_source_set_name (new_source, e_source_peek_name (source));
|
||||
|
||||
- if (e_source_get_color (source, &color))
|
||||
- e_source_set_color (new_source, color);
|
||||
+ new_source->priv->color_spec = g_strdup (source->priv->color_spec);
|
||||
|
||||
new_source->priv->absolute_uri = g_strdup (e_source_peek_absolute_uri (source));
|
||||
|
||||
--- evolution-data-server-1.9.3/libedataserver/test-source-list.c.e-source-color 2005-10-14 07:31:40.000000000 -0400
|
||||
+++ evolution-data-server-1.9.3/libedataserver/test-source-list.c 2006-12-15 16:02:47.000000000 -0500
|
||||
@@ -91,17 +91,16 @@
|
||||
dump_source (ESource *source)
|
||||
{
|
||||
char *uri = e_source_get_uri (source);
|
||||
- gboolean has_color;
|
||||
- guint32 color;
|
||||
+ const gchar *color_spec;
|
||||
|
||||
g_print ("\tSource %s\n", e_source_peek_uid (source));
|
||||
g_print ("\t\tname: %s\n", e_source_peek_name (source));
|
||||
g_print ("\t\trelative_uri: %s\n", e_source_peek_relative_uri (source));
|
||||
g_print ("\t\tabsolute_uri: %s\n", uri);
|
||||
|
||||
- has_color = e_source_get_color (source, &color);
|
||||
- if (has_color)
|
||||
- g_print ("\t\tcolor: %06x\n", color);
|
||||
+ color_spec = e_source_peek_color_spec (source);
|
||||
+ if (color_spec != NULL)
|
||||
+ g_print ("\t\tcolor: %s\n", color_spec);
|
||||
|
||||
g_print ("\t\tproperties:\n");
|
||||
e_source_foreach_property (source, (GHFunc) dump_property, NULL);
|
||||
@@ -429,7 +428,6 @@
|
||||
|
||||
if (set_color_arg != NULL) {
|
||||
ESource *source;
|
||||
- guint32 color;
|
||||
|
||||
if (add_source_arg == NULL && source_arg == NULL) {
|
||||
fprintf (stderr,
|
||||
@@ -442,8 +440,7 @@
|
||||
else
|
||||
source = e_source_list_peek_source_by_uid (list, source_arg);
|
||||
|
||||
- sscanf (set_color_arg, "%06x", &color);
|
||||
- e_source_set_color (source, color);
|
||||
+ e_source_set_color_spec (source, set_color_arg);
|
||||
e_source_list_sync (list, NULL);
|
||||
}
|
||||
|
||||
@@ -461,7 +458,7 @@
|
||||
else
|
||||
source = e_source_list_peek_source_by_uid (list, source_arg);
|
||||
|
||||
- e_source_unset_color (source);
|
||||
+ e_source_set_color_spec (source, NULL);
|
||||
e_source_list_sync (list, NULL);
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue