aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-label-action.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-14 13:20:35 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-14 13:20:35 +0800
commit51fe60cd69cd77fd63dbdd20b3e5fcc6bb650c8a (patch)
treee0fe2c41338400f65cfdd2ad86c4f0da12b4877e /mail/e-mail-label-action.h
parente3768ee53411f6c0e933c670fe9c67c93d558e32 (diff)
downloadgsoc2013-evolution-51fe60cd69cd77fd63dbdd20b3e5fcc6bb650c8a.tar
gsoc2013-evolution-51fe60cd69cd77fd63dbdd20b3e5fcc6bb650c8a.tar.gz
gsoc2013-evolution-51fe60cd69cd77fd63dbdd20b3e5fcc6bb650c8a.tar.bz2
gsoc2013-evolution-51fe60cd69cd77fd63dbdd20b3e5fcc6bb650c8a.tar.lz
gsoc2013-evolution-51fe60cd69cd77fd63dbdd20b3e5fcc6bb650c8a.tar.xz
gsoc2013-evolution-51fe60cd69cd77fd63dbdd20b3e5fcc6bb650c8a.tar.zst
gsoc2013-evolution-51fe60cd69cd77fd63dbdd20b3e5fcc6bb650c8a.zip
BugĀ 600714 - No label colors in popup menu
Diffstat (limited to 'mail/e-mail-label-action.h')
-rw-r--r--mail/e-mail-label-action.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/mail/e-mail-label-action.h b/mail/e-mail-label-action.h
new file mode 100644
index 0000000000..1b681f15db
--- /dev/null
+++ b/mail/e-mail-label-action.h
@@ -0,0 +1,73 @@
+/*
+ * e-mail-label-action.h
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with the program; if not, see <http://www.gnu.org/licenses/>
+ *
+ *
+ * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
+ *
+ */
+
+/* This is a toggle action whose menu item shows a checkbox, icon and
+ * label. Use of this thing for anything besides the label submenu in
+ * the message list popup menu is discouraged, which is why this class
+ * was not given a more generic name. */
+
+#ifndef E_MAIL_LABEL_ACTION_H
+#define E_MAIL_LABEL_ACTION_H
+
+#include <gtk/gtk.h>
+
+/* Standard GObject macros */
+#define E_TYPE_MAIL_LABEL_ACTION \
+ (e_mail_label_action_get_type ())
+#define E_MAIL_LABEL_ACTION(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_MAIL_LABEL_ACTION, EMailLabelAction))
+#define E_MAIL_LABEL_ACTION_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_MAIL_LABEL_ACTION, EMailLabelActionClass))
+#define E_IS_MAIL_LABEL_ACTION(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_MAIL_LABEL_ACTION))
+#define E_IS_MAIL_LABEL_ACTION_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_MAIL_LABEL_ACTION))
+#define E_MAIL_LABEL_ACTION_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_MAIL_LABEL_ACTION, EMailLabelActionClass))
+
+G_BEGIN_DECLS
+
+typedef struct _EMailLabelAction EMailLabelAction;
+typedef struct _EMailLabelActionClass EMailLabelActionClass;
+typedef struct _EMailLabelActionPrivate EMailLabelActionPrivate;
+
+struct _EMailLabelAction {
+ GtkToggleAction parent;
+ EMailLabelActionPrivate *priv;
+};
+
+struct _EMailLabelActionClass {
+ GtkToggleActionClass parent_class;
+};
+
+GType e_mail_label_action_get_type (void);
+EMailLabelAction *
+ e_mail_label_action_new (const gchar *name,
+ const gchar *label,
+ const gchar *tooltip,
+ const gchar *stock_id);
+
+#endif /* E_MAIL_LABEL_ACTION_H */