diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2005-12-23 12:10:07 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2005-12-23 12:10:07 +0800 |
commit | 4f2de6eca9141bc4ac495d543482adb70d214a65 (patch) | |
tree | e709d814ef933d8d72c597ac08b785af83022aea /mail/em-folder-view.c | |
parent | 98cc37b8e5605bc3f1065c0a9d5b22a0ddf7c15c (diff) | |
download | gsoc2013-evolution-4f2de6eca9141bc4ac495d543482adb70d214a65.tar.gz gsoc2013-evolution-4f2de6eca9141bc4ac495d543482adb70d214a65.tar.zst gsoc2013-evolution-4f2de6eca9141bc4ac495d543482adb70d214a65.zip |
** Fixes bug #228040, #324677
2005-12-23 Srinivasa Ragavan <sragavan@novell.com>
** Fixes bug #228040, #324677
* em-folder-view.c (emfv_popup_flag_completed),
(emfv_popup_flag_clear), (emfv_enable_menus): Added menus for complete
and clear. Also added code to refresh preview on setting flags. Also
added code to hide junk/not-junk menu depending on their sensitivity.
* em-utils.c: (tag_editor_response), (em_utils_flag_for_followup):
Added code to refresh preview.
svn path=/trunk/; revision=30941
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r-- | mail/em-folder-view.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index ecaf010f80..4d0e964019 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -837,6 +837,9 @@ emfv_popup_flag_completed(EPopup *ep, EPopupItem *pitem, void *data) uids = message_list_get_selected(emfv->list); em_utils_flag_for_followup_completed((GtkWidget *)emfv, emfv->folder, uids); + + if (emfv->preview) + em_format_redraw (emfv->preview); } static void @@ -846,6 +849,9 @@ emfv_popup_flag_clear(EPopup *ep, EPopupItem *pitem, void *data) GPtrArray *uids = message_list_get_selected(emfv->list); em_utils_flag_for_followup_clear((GtkWidget *)emfv, emfv->folder, uids); + + if (emfv->preview) + em_format_redraw (emfv->preview); } static void @@ -1242,8 +1248,8 @@ EMFV_MAP_CALLBACK(emfv_message_mark_nojunk, emfv_popup_mark_nojunk) EMFV_MAP_CALLBACK(emfv_message_delete, emfv_popup_delete) EMFV_MAP_CALLBACK(emfv_message_undelete, emfv_popup_undelete) EMFV_MAP_CALLBACK(emfv_message_followup_flag, emfv_popup_flag_followup) -/*EMFV_MAP_CALLBACK(emfv_message_followup_clear, emfv_popup_flag_clear) - EMFV_MAP_CALLBACK(emfv_message_followup_completed, emfv_popup_flag_completed)*/ +EMFV_MAP_CALLBACK(emfv_message_followup_clear, emfv_popup_flag_clear) +EMFV_MAP_CALLBACK(emfv_message_followup_completed, emfv_popup_flag_completed) EMFV_MAP_CALLBACK(emfv_message_open, emfv_popup_open) EMFV_MAP_CALLBACK(emfv_message_edit, emfv_popup_edit) EMFV_MAP_CALLBACK(emfv_message_saveas, emfv_popup_saveas) @@ -1694,6 +1700,8 @@ static BonoboUIVerb emfv_message_verbs[] = { BONOBO_UI_UNSAFE_VERB ("MessageMarkAsJunk", emfv_message_mark_junk), BONOBO_UI_UNSAFE_VERB ("MessageMarkAsNotJunk", emfv_message_mark_nojunk), BONOBO_UI_UNSAFE_VERB ("MessageFollowUpFlag", emfv_message_followup_flag), + BONOBO_UI_UNSAFE_VERB ("MessageFollowUpComplete", emfv_message_followup_completed), + BONOBO_UI_UNSAFE_VERB ("MessageFollowUpClear", emfv_message_followup_clear), BONOBO_UI_UNSAFE_VERB ("MessageMove", emfv_message_move), BONOBO_UI_UNSAFE_VERB ("MessageOpen", emfv_message_open), BONOBO_UI_UNSAFE_VERB ("MessagePostReply", emfv_message_post_reply), @@ -1808,7 +1816,9 @@ static const EMFolderViewEnable emfv_enable_map[] = { { "MessageMarkAsUnimportant", EM_POPUP_SELECT_MANY|EM_POPUP_SELECT_MARK_UNIMPORTANT }, { "MessageMarkAsJunk", EM_POPUP_SELECT_MANY|EM_POPUP_SELECT_JUNK }, { "MessageMarkAsNotJunk", EM_POPUP_SELECT_MANY|EM_POPUP_SELECT_NOT_JUNK }, - { "MessageFollowUpFlag", EM_POPUP_SELECT_MANY }, + { "MessageFollowUpFlag", EM_POPUP_SELECT_MANY|EM_POPUP_SELECT_FLAG_FOLLOWUP }, + { "MessageFollowUpComplete", EM_POPUP_SELECT_MANY|EM_POPUP_SELECT_FLAG_COMPLETED }, + { "MessageFollowUpClear", EM_POPUP_SELECT_MANY|EM_POPUP_SELECT_FLAG_CLEAR }, { "MessageMove", EM_POPUP_SELECT_MANY }, { "MessageOpen", EM_POPUP_SELECT_MANY }, { "MessagePostReply", EM_POPUP_SELECT_ONE }, @@ -1896,6 +1906,12 @@ emfv_enable_menus(EMFolderView *emfv) } } + /* Just Hide/Unhide Junk-Not Junk*/ + bonobo_ui_component_set_prop(emfv->uic, "/commands/MessageMarkAsJunk", "hidden", + *(bonobo_ui_component_get_prop(emfv->uic, "/commands/MessageMarkAsJunk", "sensitive",NULL)) == '1'?"0":"1", NULL); + bonobo_ui_component_set_prop(emfv->uic, "/commands/MessageMarkAsNotJunk", "hidden", + *(bonobo_ui_component_get_prop(emfv->uic, "/commands/MessageMarkAsNotJunk", "sensitive",NULL)) == '1'?"0":"1", NULL); + g_string_free(name, TRUE); } |