aboutsummaryrefslogtreecommitdiffstats
path: root/mail/subscribe-control.h
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-09-28 08:43:42 +0800
committerChris Toshok <toshok@src.gnome.org>2000-09-28 08:43:42 +0800
commit67c50dc234f6ad9366c32ba25acb1971b76a0130 (patch)
treee2a2c7111c9531557f0544a756a58e18b25bb630 /mail/subscribe-control.h
parent6c4d4168047713cb57d4a96c671e2c24c3dfad87 (diff)
downloadgsoc2013-evolution-67c50dc234f6ad9366c32ba25acb1971b76a0130.tar
gsoc2013-evolution-67c50dc234f6ad9366c32ba25acb1971b76a0130.tar.gz
gsoc2013-evolution-67c50dc234f6ad9366c32ba25acb1971b76a0130.tar.bz2
gsoc2013-evolution-67c50dc234f6ad9366c32ba25acb1971b76a0130.tar.lz
gsoc2013-evolution-67c50dc234f6ad9366c32ba25acb1971b76a0130.tar.xz
gsoc2013-evolution-67c50dc234f6ad9366c32ba25acb1971b76a0130.tar.zst
gsoc2013-evolution-67c50dc234f6ad9366c32ba25acb1971b76a0130.zip
add SubscribeControl typedef.
2000-09-27 Chris Toshok <toshok@helixcode.com> * mail-types.h: add SubscribeControl typedef. * Makefile.am (evolution_mail_SOURCES): add the subscribe stuff. * subscribe-control-factory.h * subscribe-control-factory.c * subscribe-control.c: * subscribe-control.h: Mostly mocked up subscribe ui. svn path=/trunk/; revision=5610
Diffstat (limited to 'mail/subscribe-control.h')
-rw-r--r--mail/subscribe-control.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/mail/subscribe-control.h b/mail/subscribe-control.h
new file mode 100644
index 0000000000..5124f3a8b7
--- /dev/null
+++ b/mail/subscribe-control.h
@@ -0,0 +1,60 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+
+
+#ifndef _SUBSCRIBE_CONTROL_H_
+#define _SUBSCRIBE_CONTROL_H_
+
+#include "mail-types.h"
+#include <gtk/gtktable.h>
+#include <gal/e-table/e-tree-model.h>
+#include <bonobo/bonobo-ui-handler.h>
+#include <bonobo/bonobo-property-bag.h>
+#include "shell/Evolution.h"
+
+
+#define SUBSCRIBE_CONTROL_TYPE (subscribe_control_get_type ())
+#define SUBSCRIBE_CONTROL(o) (GTK_CHECK_CAST ((o), SUBSCRIBE_CONTROL_TYPE, SubscribeControl))
+#define SUBSCRIBE_CONTROL_CLASS(k) (GTK_CHECK_CLASS_CAST((k), SUBSCRIBE_CONTROL_TYPE, SubscribeControlClass))
+#define IS_SUBSCRIBE_CONTROL(o) (GTK_CHECK_TYPE ((o), SUBSCRIBE_CONTROL_TYPE))
+#define IS_SUBSCRIBE_CONTROL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), SUBSCRIBE_CONTROL_TYPE))
+
+struct _SubscribeControl {
+ GtkTable parent;
+
+ BonoboPropertyBag *properties;
+
+ Evolution_Shell shell;
+
+ /* This is a kludge for the toolbar problem. */
+ int serial;
+
+ /*
+ * The current URI being displayed by the SubscribeControl
+ */
+ char *uri;
+ gboolean is_news;
+
+ GtkWidget *description;
+ GtkWidget *table;
+ ETreeModel *model;
+ ETreePath *root;
+};
+
+
+typedef struct {
+ GtkTableClass parent_class;
+} SubscribeControlClass;
+
+GtkType subscribe_control_get_type (void);
+GtkWidget *subscribe_control_new (const Evolution_Shell shell);
+
+gboolean subscribe_control_set_uri (SubscribeControl *subscribe_control,
+ const char *uri);
+
+/* menu/toolbar callbacks */
+void subscribe_select_all (BonoboUIHandler *uih, void *user_data, const char *path);
+void subscribe_unselect_all (BonoboUIHandler *uih, void *user_data, const char *path);
+void subscribe_folder (GtkWidget *widget, gpointer user_data);
+void unsubscribe_folder (GtkWidget *widget, gpointer user_data);
+
+#endif /* _SUBSCRIBE_CONTROL_H_ */