aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-09-04 02:43:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-09-04 02:43:04 +0800
commit6590787f2dc06e082374b71911737b2b1aff2ba9 (patch)
treebd90f60d227102a845c814ad78e9b87b17f3b6b7
parent8a4fce2f2285e8048bca74f78e034db759933f57 (diff)
downloadgsoc2013-evolution-6590787f2dc06e082374b71911737b2b1aff2ba9.tar
gsoc2013-evolution-6590787f2dc06e082374b71911737b2b1aff2ba9.tar.gz
gsoc2013-evolution-6590787f2dc06e082374b71911737b2b1aff2ba9.tar.bz2
gsoc2013-evolution-6590787f2dc06e082374b71911737b2b1aff2ba9.tar.lz
gsoc2013-evolution-6590787f2dc06e082374b71911737b2b1aff2ba9.tar.xz
gsoc2013-evolution-6590787f2dc06e082374b71911737b2b1aff2ba9.tar.zst
gsoc2013-evolution-6590787f2dc06e082374b71911737b2b1aff2ba9.zip
New callback functions that wrap the mail-callbacks versions of
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. svn path=/trunk/; revision=17950
-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,