From 54b80a7271e8ce1b2f3ccc68bb553940a24b80e2 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 17 Oct 2008 03:48:03 +0000 Subject: Get the mail folder tree compiling, though I'm not yet sure why it's not showing anything. Probably something stupid. Also enabled the composer. svn path=/branches/kill-bonobo/; revision=36623 --- mail/em-folder-selection-button.h | 104 ++++++++++++++++++++++++-------------- 1 file changed, 67 insertions(+), 37 deletions(-) (limited to 'mail/em-folder-selection-button.h') diff --git a/mail/em-folder-selection-button.h b/mail/em-folder-selection-button.h index e9cd1c2a0e..a8b009b1c0 100644 --- a/mail/em-folder-selection-button.h +++ b/mail/em-folder-selection-button.h @@ -21,29 +21,41 @@ * */ -#ifndef __EM_FOLDER_SELECTION_BUTTON_H__ -#define __EM_FOLDER_SELECTION_BUTTON_H__ +#ifndef EM_FOLDER_SELECTION_BUTTON_H +#define EM_FOLDER_SELECTION_BUTTON_H #include -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ - -#define EM_TYPE_FOLDER_SELECTION_BUTTON (em_folder_selection_button_get_type ()) -#define EM_FOLDER_SELECTION_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EM_TYPE_FOLDER_SELECTION_BUTTON, EMFolderSelectionButton)) -#define EM_FOLDER_SELECTION_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EM_TYPE_FOLDER_SELECTION_BUTTON, EMFolderSelectionButtonClass)) -#define EM_IS_FOLDER_SELECTION_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EM_TYPE_FOLDER_SELECTION_BUTTON)) -#define EM_IS_FOLDER_SELECTION_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EM_TYPE_FOLDER_SELECTION_BUTTON)) - -typedef struct _EMFolderSelectionButton EMFolderSelectionButton; -typedef struct _EMFolderSelectionButtonClass EMFolderSelectionButtonClass; +#include + +/* Standard GObject macros */ +#define EM_TYPE_FOLDER_SELECTION_BUTTON \ + (em_folder_selection_button_get_type ()) +#define EM_FOLDER_SELECTION_BUTTON(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), EM_TYPE_FOLDER_SELECTION_BUTTON, EMFolderSelectionButton)) +#define EM_FOLDER_SELECTION_BUTTON_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), EM_TYPE_FOLDER_SELECTION_BUTTON, EMFolderSelectionButtonClass)) +#define EM_IS_FOLDER_SELECTION_BUTTON(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), EM_TYPE_FOLDER_SELECTION_BUTTON)) +#define EM_IS_FOLDER_SELECTION_BUTTON_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((obj), EM_TYPE_FOLDER_SELECTION_BUTTON)) +#define EM_FOLDER_SELECTION_BUTTON_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), EM_TYPE_FOLDER_SELECTION_BUTTON, EMFolderSelectionButtonClass)) + +G_BEGIN_DECLS + +typedef struct _EMFolderSelectionButton EMFolderSelectionButton; +typedef struct _EMFolderSelectionButtonClass EMFolderSelectionButtonClass; +typedef struct _EMFolderSelectionButtonPrivate EMFolderSelectionButtonPrivate; struct _EMFolderSelectionButton { GtkButton parent; - - struct _EMFolderSelectionButtonPrivate *priv; + EMFolderSelectionButtonPrivate *priv; }; struct _EMFolderSelectionButtonClass { @@ -51,25 +63,43 @@ struct _EMFolderSelectionButtonClass { /* Signals. */ - void (* selected) (EMFolderSelectionButton *button); + void (*selected) (EMFolderSelectionButton *button); }; - -GType em_folder_selection_button_get_type (void); - -GtkWidget *em_folder_selection_button_new (const char *title, const char *caption); - -void em_folder_selection_button_set_selection (EMFolderSelectionButton *button, const char *uri); -const char *em_folder_selection_button_get_selection (EMFolderSelectionButton *button); - -void em_folder_selection_button_set_selection_mult (EMFolderSelectionButton *button, GList *uris); -GList *em_folder_selection_button_get_selection_mult (EMFolderSelectionButton *button); - -void em_folder_selection_button_set_multiselect (EMFolderSelectionButton *button, gboolean value); -gboolean em_folder_selection_button_get_multiselect (EMFolderSelectionButton *button); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* __EM_FOLDER_SELECTION_BUTTON_H__ */ +GType em_folder_selection_button_get_type (void); +GtkWidget * em_folder_selection_button_new + (EMFolderTreeModel *model, + const gchar *title, + const gchar *caption); +EMFolderTreeModel * + em_folder_selection_button_get_model + (EMFolderSelectionButton *button); +const gchar * em_folder_selection_button_get_caption + (EMFolderSelectionButton *button); +void em_folder_selection_button_set_caption + (EMFolderSelectionButton *button, + const gchar *caption); +gboolean em_folder_selection_button_get_multiselect + (EMFolderSelectionButton *button); +void em_folder_selection_button_set_multiselect + (EMFolderSelectionButton *button, + gboolean multiselect); +const gchar * em_folder_selection_button_get_selection + (EMFolderSelectionButton *button); +void em_folder_selection_button_set_selection + (EMFolderSelectionButton *button, + const gchar *uri); +GList * em_folder_selection_button_get_selection_mult + (EMFolderSelectionButton *button); +void em_folder_selection_button_set_selection_mult + (EMFolderSelectionButton *button, + GList *uris); +const gchar * em_folder_selection_button_get_title + (EMFolderSelectionButton *button); +void em_folder_selection_button_set_title + (EMFolderSelectionButton *button, + const gchar *title); + +G_END_DECLS + +#endif /* EM_FOLDER_SELECTION_BUTTON_H */ -- cgit v1.2.3