diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-08-03 06:36:11 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-08-03 06:36:11 +0800 |
commit | 405ef3bcf3cf661a017fd133a0771c3cb1b78b3a (patch) | |
tree | 95d06ff9cf7ec13c2cffd25f5164408e295b1c3c /mail/message-tag-editor.c | |
parent | 784fe19dd5554f138a4f24695060ada980665136 (diff) | |
download | gsoc2013-evolution-405ef3bcf3cf661a017fd133a0771c3cb1b78b3a.tar gsoc2013-evolution-405ef3bcf3cf661a017fd133a0771c3cb1b78b3a.tar.gz gsoc2013-evolution-405ef3bcf3cf661a017fd133a0771c3cb1b78b3a.tar.bz2 gsoc2013-evolution-405ef3bcf3cf661a017fd133a0771c3cb1b78b3a.tar.lz gsoc2013-evolution-405ef3bcf3cf661a017fd133a0771c3cb1b78b3a.tar.xz gsoc2013-evolution-405ef3bcf3cf661a017fd133a0771c3cb1b78b3a.tar.zst gsoc2013-evolution-405ef3bcf3cf661a017fd133a0771c3cb1b78b3a.zip |
Updated to use the new Follow-Up tags. Instead of storing a string
2002-08-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_display_render): Updated to use the new
Follow-Up tags. Instead of storing a string containing the
follow-up tag value, we now have to store the CamelMessageInfo.
(mail_display_destroy): Unref the folder and the message-info.
* folder-browser.c (followup_tag_complete): No longer needed.
(on_right_clicked): Use the individual follow-up tags to decide
whether or not to enable something.
* message-list.c (ml_tree_value_at): Update to use the new
Follow-Up tags.
* mail-callbacks.c (flag_for_followup): Update to use the new
MessageTagEditor API.
(tag_editor_ok): Update this too.
(flag_followup_completed): Updated this too.
(flag_followup_clear): Set all the follow-up tag values to "".
svn path=/trunk/; revision=17691
Diffstat (limited to 'mail/message-tag-editor.c')
-rw-r--r-- | mail/message-tag-editor.c | 48 |
1 files changed, 16 insertions, 32 deletions
diff --git a/mail/message-tag-editor.c b/mail/message-tag-editor.c index 506bd6b666..3622611fec 100644 --- a/mail/message-tag-editor.c +++ b/mail/message-tag-editor.c @@ -34,11 +34,12 @@ static void message_tag_editor_class_init (MessageTagEditorClass *class); static void message_tag_editor_init (MessageTagEditor *editor); static void message_tag_editor_finalise (GtkObject *obj); -static const char *tag_get_name (MessageTagEditor *editor); -static const char *tag_get_value (MessageTagEditor *editor); -static void tag_set_value (MessageTagEditor *editor, const char *value); +static CamelTag *get_tag_list (MessageTagEditor *editor); +static void set_tag_list (MessageTagEditor *editor, CamelTag *value); + + +static GnomeDialogClass *parent_class = NULL; -static GnomeDialogClass *parent_class; GtkType message_tag_editor_get_type (void) @@ -72,9 +73,8 @@ message_tag_editor_class_init (MessageTagEditorClass *klass) object_class->finalize = message_tag_editor_finalise; - klass->get_name = tag_get_name; - klass->get_value = tag_get_value; - klass->set_value = tag_set_value; + klass->get_tag_list = get_tag_list; + klass->set_tag_list = set_tag_list; } static void @@ -99,49 +99,33 @@ message_tag_editor_finalise (GtkObject *obj) ((GtkObjectClass *)(parent_class))->finalize (obj); } - -static const char * -tag_get_name (MessageTagEditor *editor) -{ - return NULL; -} - -const char * -message_tag_editor_get_name (MessageTagEditor *editor) -{ - g_return_val_if_fail (IS_MESSAGE_TAG_EDITOR (editor), NULL); - - return ((MessageTagEditorClass *)((GtkObject *) editor)->klass)->get_name (editor); -} - - -static const char * -tag_get_value (MessageTagEditor *editor) +static CamelTag * +get_tag_list (MessageTagEditor *editor) { return NULL; } -const char * -message_tag_editor_get_value (MessageTagEditor *editor) +CamelTag * +message_tag_editor_get_tag_list (MessageTagEditor *editor) { g_return_val_if_fail (IS_MESSAGE_TAG_EDITOR (editor), NULL); - return ((MessageTagEditorClass *)((GtkObject *) editor)->klass)->get_value (editor); + return ((MessageTagEditorClass *)((GtkObject *) editor)->klass)->get_tag_list (editor); } static void -tag_set_value (MessageTagEditor *editor, const char *value) +set_tag_list (MessageTagEditor *editor, CamelTag *tags) { /* no-op */ ; } void -message_tag_editor_set_value (MessageTagEditor *editor, const char *value) +message_tag_editor_set_tag_list (MessageTagEditor *editor, CamelTag *tags) { g_return_if_fail (IS_MESSAGE_TAG_EDITOR (editor)); - g_return_if_fail (value != NULL); + g_return_if_fail (tags != NULL); - ((MessageTagEditorClass *)((GtkObject *) editor)->klass)->set_value (editor, value); + ((MessageTagEditorClass *)((GtkObject *) editor)->klass)->set_tag_list (editor, tags); } |