diff options
author | Milan Crha <mcrha@redhat.com> | 2007-12-17 13:40:53 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-12-17 13:40:53 +0800 |
commit | 2093e3100243fb209ceb2c3a26d917124903dd8a (patch) | |
tree | 7974536b2cc4f091d51cfffdf67cc1b862134a06 /mail/mail-config.h | |
parent | aec1cc466636e8630eccbf4cf5a593dca84dde95 (diff) | |
download | gsoc2013-evolution-2093e3100243fb209ceb2c3a26d917124903dd8a.tar.gz gsoc2013-evolution-2093e3100243fb209ceb2c3a26d917124903dd8a.tar.zst gsoc2013-evolution-2093e3100243fb209ceb2c3a26d917124903dd8a.zip |
** Fix for bug #211353
2007-12-14 Milan Crha <mcrha@redhat.com>
** Fix for bug #211353
* message-list.etspec:
* message-list.h:
* message-list.c: Added new column to show labels.
* filtertypes.xml:
* vfoldertypes.xml:
Code for label filters/search folders has been changed.
* mail-config.glade:
* em-folder-view.c: (emfv_set_label), (emfv_unset_label),
(emfv_popup_label_clear), (emfv_popup_label_set),
(emfv_popup_labels_get_state_for_tag), (emfv_popup):
Labels popup submenu is now shown with checkboxes so one can set
more than one label to the message and unset only one label from
message. There has been added new function, because of this.
* mail-config.h:
* mail-config.c: New "interface" functions to work with labels.
* em-mailer-prefs.h:
* em-mailer-prefs.c: Editing labels in tree.
* em-folder-browser.c:
Labels in show menu reflect changes in preferences.
2007-12-14 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #211353
* filter-label.c: Use global label's setup, not its own copy.
2007-12-14 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #211353
* e-popup.h:
* e-popup.c: (ep_build_tree):
Toggles can be in inconsistent state now, and can also contain
an image, which is a pointer to GtkImage widget.
2007-12-14 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #211353
* e-search-bar.c: (e_search_bar_get_viewitem_id):
Return -1 if no viewmenu is setup yet.
svn path=/trunk/; revision=34715
Diffstat (limited to 'mail/mail-config.h')
-rw-r--r-- | mail/mail-config.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/mail/mail-config.h b/mail/mail-config.h index 3d159fe7e1..454a44f2bf 100644 --- a/mail/mail-config.h +++ b/mail/mail-config.h @@ -25,6 +25,7 @@ #include <glib.h> #include <glib-object.h> +#include <gdk/gdkcolor.h> #include "camel/camel-provider.h" /* can't forward-declare enums, bah */ @@ -94,7 +95,7 @@ typedef struct { } MailConfigLabel; #define LABEL_DEFAULTS_NUM 5 -extern MailConfigLabel label_defaults[5]; +extern MailConfigLabel label_defaults[LABEL_DEFAULTS_NUM]; /* Configuration */ void mail_config_init (void); @@ -108,9 +109,17 @@ struct _GConfClient *mail_config_get_gconf_client (void); gboolean mail_config_is_configured (void); gboolean mail_config_is_corrupt (void); -GSList *mail_config_get_labels (void); -const char *mail_config_get_label_color_by_name (const char *name); -const char *mail_config_get_label_color_by_index (int index); +GSList * mail_config_get_labels (void); +char * mail_config_get_next_label_tag (int *id); +gboolean mail_config_is_system_label (const char *tag); +gboolean mail_config_add_label (const char *tag, const char *name, const GdkColor *color); +gboolean mail_config_remove_label (const char *tag); +const char *mail_config_get_label_name (const char *tag); +gboolean mail_config_get_label_color (const char *tag, GdkColor *color); +const char *mail_config_get_label_color_str (const char *tag); +const char *mail_config_get_new_label_tag (const char *old_tag); +gboolean mail_config_set_label_name (const char *tag, const char *name); +gboolean mail_config_set_label_color (const char *tag, const GdkColor *color); const char **mail_config_get_allowable_mime_types (void); |