From c788ba0fafe0143c06efb32a633aef139d21e142 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 13 Sep 2001 21:11:22 +0000 Subject: Disable DnD on the EStorageSetView to avoid strange behaviors. * e-shell-view.c (pop_up_folder_bar): Disable DnD on the EStorageSetView to avoid strange behaviors. (reparent_storage_set_view_box_and_destroy_popup): Re-enable DnD here. (popdown_transient_folder_bar): And here as well. * evolution-storage-set-view-factory.c (evolution_storage_set_view_factory_new_view): Disable DnD on the EStorageSetView. * e-shell-folder-selection-dialog.c (e_shell_folder_selection_dialog_construct): Disable DnD on the EStorageSetView. * e-shell-folder-creation-dialog.c (add_storage_set_view): Disable DnD on the EStorageSetView. * e-storage-set-view.c: New member `allow_dnd' in `EStorageSetViewPrivate'. (init): Init to `allow_dnd' %TRUE. (tree_start_drag): If `allow_dnd' is false, don't start the drag and return %FALSE. (tree_drag_motion): If `allow_dnd' is false, return %FALSE. (e_storage_set_view_get_allow_dnd): New. (e_storage_set_view_set_allow_dnd): New. svn path=/trunk/; revision=12810 --- shell/e-storage-set-view.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'shell/e-storage-set-view.h') diff --git a/shell/e-storage-set-view.h b/shell/e-storage-set-view.h index b5de34b2f1..9e00c0e678 100644 --- a/shell/e-storage-set-view.h +++ b/shell/e-storage-set-view.h @@ -68,21 +68,25 @@ struct _EStorageSetViewClass { }; -GtkType e_storage_set_view_get_type (void); -GtkWidget *e_storage_set_view_new_partial_view (EStorageSet *storage_set, - GList *visible_types); -GtkWidget *e_storage_set_view_new (EStorageSet *storage_set, - BonoboUIContainer *container); -void e_storage_set_view_construct (EStorageSetView *storage_set_view, - EStorageSet *storage_set, - BonoboUIContainer *container); +GtkType e_storage_set_view_get_type (void); + +GtkWidget *e_storage_set_view_new (EStorageSet *storage_set, + BonoboUIContainer *container); +void e_storage_set_view_construct (EStorageSetView *storage_set_view, + EStorageSet *storage_set, + BonoboUIContainer *container); + void e_storage_set_view_set_current_folder (EStorageSetView *storage_set_view, const char *path); const char *e_storage_set_view_get_current_folder (EStorageSetView *storage_set_view); void e_storage_set_view_set_show_folders (EStorageSetView *storage_set_view, - gboolean show); + gboolean show); gboolean e_storage_set_view_get_show_folders (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); #ifdef __cplusplus } -- cgit