From 6590787f2dc06e082374b71911737b2b1aff2ba9 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 3 Sep 2002 18:43:04 +0000 Subject: New callback functions that wrap the mail-callbacks versions of 2002-09-03 Jeffrey Stedfast * folder-browser.c (mark_as_seen_cb): (mark_as_unseen_cb): (mark_as_important_cb): (mark_as_unimportant_cb): New callback functions that wrap the mail-callbacks versions of mark_as_. Thanks to Owen Taylor for this fix. svn path=/trunk/; revision=17950 --- mail/folder-browser.c | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'mail/folder-browser.c') diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 6c9b13d68c..ebc91cdda9 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -1643,6 +1643,29 @@ label_closures_free (GPtrArray *closures) g_ptr_array_free (closures, TRUE); } +static void +mark_as_seen_cb (GtkWidget *widget, void *user_data) +{ + mark_as_seen (NULL, user_data, NULL); +} + +static void +mark_as_unseen_cb (GtkWidget *widget, void *user_data) +{ + mark_as_unseen (NULL, user_data, NULL); +} + +static void +mark_as_important_cb (GtkWidget *widget, void *user_data) +{ + mark_as_important (NULL, user_data, NULL); +} + +static void +mark_as_unimportant_cb (GtkWidget *widget, void *user_data) +{ + mark_as_unimportant (NULL, user_data, NULL); +} enum { SELECTION_SET = 1<<1, @@ -1711,10 +1734,10 @@ static EPopupMenu context_menu[] = { /* separator here? */ - E_POPUP_ITEM (N_("Mar_k as Read"), GTK_SIGNAL_FUNC (mark_as_seen), CAN_MARK_READ), - E_POPUP_ITEM (N_("Mark as _Unread"), GTK_SIGNAL_FUNC (mark_as_unseen), CAN_MARK_UNREAD), - E_POPUP_ITEM (N_("Mark as _Important"), GTK_SIGNAL_FUNC (mark_as_important), CAN_MARK_IMPORTANT), - E_POPUP_ITEM (N_("_Mark as Unimportant"), GTK_SIGNAL_FUNC (mark_as_unimportant), CAN_MARK_UNIMPORTANT), + E_POPUP_ITEM (N_("Mar_k as Read"), GTK_SIGNAL_FUNC (mark_as_seen_cb), CAN_MARK_READ), + E_POPUP_ITEM (N_("Mark as _Unread"), GTK_SIGNAL_FUNC (mark_as_unseen_cb), CAN_MARK_UNREAD), + E_POPUP_ITEM (N_("Mark as _Important"), GTK_SIGNAL_FUNC (mark_as_important_cb), CAN_MARK_IMPORTANT), + E_POPUP_ITEM (N_("_Mark as Unimportant"), GTK_SIGNAL_FUNC (mark_as_unimportant_cb), CAN_MARK_UNIMPORTANT), E_POPUP_SEPARATOR, -- cgit