diff options
Diffstat (limited to 'mail/em-folder-selection-button.h')
-rw-r--r-- | mail/em-folder-selection-button.h | 104 |
1 files changed, 67 insertions, 37 deletions
diff --git a/mail/em-folder-selection-button.h b/mail/em-folder-selection-button.h index 7b2a1b471d..391b6b1dbd 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 <gtk/gtk.h> -#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 <mail/em-folder-tree-model.h> + +/* 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 gchar *title, const gchar *caption); - -void em_folder_selection_button_set_selection (EMFolderSelectionButton *button, const gchar *uri); -const gchar *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 */ |