aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/folder-browser.c31
2 files changed, 36 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b38590202a..d99879361b 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,12 @@
+2002-09-03 Jeffrey Stedfast <fejj@ximian.com>
+
+ * 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_<whatever>. Thanks to Owen
+ Taylor for this fix.
+
2002-09-04 Not Zed <NotZed@Ximian.com>
* component-factory.c (storage_xfer_folder): Dont translate / to
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,