diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-21 02:05:55 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-21 02:05:55 +0800 |
commit | 97d578613baab00205b157c2cd87baed41dbcf5f (patch) | |
tree | 51e420dd62e91ac6162a0ba0dcdd0e9d3f0c42d6 /shell/e-storage-set-view.h | |
parent | de5b0738fd523214973cbc12287a599164baad5c (diff) | |
download | gsoc2013-evolution-97d578613baab00205b157c2cd87baed41dbcf5f.tar.gz gsoc2013-evolution-97d578613baab00205b157c2cd87baed41dbcf5f.tar.zst gsoc2013-evolution-97d578613baab00205b157c2cd87baed41dbcf5f.zip |
Pass NULL for @has_checkbox_func and @has_checkbox_func_data.
* e-shell-config-offline.c
(e_shell_config_offline_create_control): Pass NULL for
@has_checkbox_func and @has_checkbox_func_data.
* evolution-storage-set-view.c
(impl_StorageSetView__set_showCheckboxes): Pass NULL for
@has_checkbox_func and @has_checkbox_func_data.
* e-storage-set-view.c: New member has_checkbox_func and
has_checkbox_func_data in EStorageSetViewPrivate.
(init): Init to NULL.
(e_storage_set_view_set_show_checkboxes): New args
@has_checkbox_func and @func_data.
(has_checkbox): Always return FALSE for the toplevels. For the
other ones return TRUE unless ->has_checkbox_func is not-NULL; in
which case, we use that function to determine whether the folder
is actually checkable.
* Evolution-ShellComponent.idl (requestQuit): Remove exception.
svn path=/trunk/; revision=16945
Diffstat (limited to 'shell/e-storage-set-view.h')
-rw-r--r-- | shell/e-storage-set-view.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/shell/e-storage-set-view.h b/shell/e-storage-set-view.h index 553db79f9e..7d615cecaf 100644 --- a/shell/e-storage-set-view.h +++ b/shell/e-storage-set-view.h @@ -39,6 +39,10 @@ extern "C" { #define E_IS_STORAGE_SET_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_STORAGE_SET_VIEW)) +typedef gboolean (* EStorageSetViewHasCheckBoxFunc) (EStorageSet *storage_set, + const char *path, + void *data); + typedef struct _EStorageSetView EStorageSetView; typedef struct _EStorageSetViewPrivate EStorageSetViewPrivate; typedef struct _EStorageSetViewClass EStorageSetViewClass; @@ -91,19 +95,21 @@ void e_storage_set_view_set_show_folders (EStorageSetView *storage_set gboolean show); gboolean e_storage_set_view_get_show_folders (EStorageSetView *storage_set_view); -void e_storage_set_view_set_show_checkboxes (EStorageSetView *storage_set_view, - gboolean show); -gboolean e_storage_set_view_get_show_checkboxes (EStorageSetView *storage_set_view); +void e_storage_set_view_set_show_checkboxes (EStorageSetView *storage_set_view, + gboolean show, + EStorageSetViewHasCheckBoxFunc has_checkbox_func, + void *func_data); +gboolean e_storage_set_view_get_show_checkboxes (EStorageSetView *storage_set_view); -void e_storage_set_view_set_checkboxes_list (EStorageSetView *storage_set_view, - GList *checkboxes); -GList *e_storage_set_view_get_checkboxes_list (EStorageSetView *storage_set_view); +void e_storage_set_view_set_checkboxes_list (EStorageSetView *storage_set_view, + GList *checkboxes); +GList *e_storage_set_view_get_checkboxes_list (EStorageSetView *storage_set_view); -void e_storage_set_view_set_allow_dnd (EStorageSetView *storage_set_view, - gboolean allow_dnd); -gboolean e_storage_set_view_get_allow_dnd (EStorageSetView *storage_set_view); +void e_storage_set_view_set_allow_dnd (EStorageSetView *storage_set_view, + gboolean allow_dnd); +gboolean e_storage_set_view_get_allow_dnd (EStorageSetView *storage_set_view); -const char *e_storage_set_view_get_right_click_path (EStorageSetView *storage_set_view); +const char *e_storage_set_view_get_right_click_path (EStorageSetView *storage_set_view); #ifdef __cplusplus } |