aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-09-14 05:11:22 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-09-14 05:11:22 +0800
commitc788ba0fafe0143c06efb32a633aef139d21e142 (patch)
tree2c593a485ad3d35f6f453f1f46b7a1394d828337 /shell/e-shell-view.c
parent080576bf0dc05633d2e0d4ed7fef8db98a853fc9 (diff)
downloadgsoc2013-evolution-c788ba0fafe0143c06efb32a633aef139d21e142.tar.gz
gsoc2013-evolution-c788ba0fafe0143c06efb32a633aef139d21e142.tar.zst
gsoc2013-evolution-c788ba0fafe0143c06efb32a633aef139d21e142.zip
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
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 2182c53d8d..974da73007 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -307,6 +307,10 @@ reparent_storage_set_view_box_and_destroy_popup (EShellView *shell_view)
gtk_widget_destroy (priv->folder_bar_popup);
priv->folder_bar_popup = NULL;
+
+ /* Re-enable DnD on the StorageSetView (it got disabled when displaying
+ the pop-up). */
+ e_storage_set_view_set_allow_dnd (E_STORAGE_SET_VIEW (priv->storage_set_view), TRUE);
}
static void
@@ -320,6 +324,10 @@ popdown_transient_folder_bar (EShellView *shell_view)
gtk_widget_hide (priv->storage_set_view_box);
e_shell_folder_title_bar_set_toggle_state (E_SHELL_FOLDER_TITLE_BAR (priv->folder_title_bar), FALSE);
+
+ /* Re-enable DnD on the StorageSetView (it got disabled when displaying
+ the pop-up). */
+ e_storage_set_view_set_allow_dnd (E_STORAGE_SET_VIEW (priv->storage_set_view), TRUE);
}
static int
@@ -485,6 +493,9 @@ pop_up_folder_bar (EShellView *shell_view)
gtk_widget_show (priv->storage_set_view_box);
gtk_widget_popup (priv->folder_bar_popup, x, y);
+
+ /* Disable DnD or "interesting" things will happen. */
+ e_storage_set_view_set_allow_dnd (E_STORAGE_SET_VIEW (priv->storage_set_view), FALSE);
}
:08 +0800'>2009-02-1813-166/+169 * - Update spamcontrol patch collection to 2519garga2009-02-184-38/+53 * - Pass maintainership to submittertabthorpe2009-02-1712-12/+12 * Add missing dependency on libpcre (do not bump revision)vsevolod2009-02-161-0/+2 * * Add new port rmilter: milter that is designed for using in highly loadedvsevolod2009-02-164-0/+56 * Update to 0.2skv2009-02-162-4/+4 * - add LICENSE:dinoex2009-02-163-1/+6 * - Update to 3.02.4amdmi32009-02-162-5/+5 * - Update to 2.0.6beech2009-02-152-4/+4 * - Remove mail/py-pyclamd this port was moved to security/py-pyclamdmiwi2009-02-157-98/+0 * Update to 1.26skv2009-02-152-4/+4 * - update to 1.0.2dinoex2009-02-152-4/+4 * - Deprecate due to planned end of support for tcl/tk 83 on 2009-05-22mm2009-02-141-0/+3 * - Fix plist after ruby update by generating it dynamically.miwi2009-02-142-53/+1 * - Fix plist after ruby update by generating it dynamically.miwi2009-02-142-603/+1 * - Fix the dma.rb wrapper for sendmail -t support to not requirewxs2009-02-142-1/+3 * - Pass maintainership to submittertabthorpe2009-02-141-1/+1 * - Update qmail-spamcontrol's smtpdextfork patch to last versiongarga2009-02-132-4/+4 * - Pass maintainership alongwxs2009-02-131-1/+1 * - Pass maintainership along.wxs2009-02-131-1/+1 * Also mark BROKEN on recent 7 after the MFC of strndup(3).erwin2009-02-131-1/+1 * - Update to 1.3.102beat2009-02-132-5/+5 * Grab maintainership (as the latest patch is mine anyway)johans2009-02-131-1/+1 * - Simplify ldconfig handlingpav2009-02-131-6/+2 * - Update to 2.2.2clsung2009-02-123-532/+491 * The DragonFly Mail Agent is a small Mail Transport Agent (MTA),wxs2009-02-129-0/+200 * Use mail/squirellmail/bsd.squirrelmail.mk.itetcu2009-02-122-116/+4 * Use mail/squirellmail/bsd.squirrelmail.mk.itetcu2009-02-121-61/+3 * Use mail/squirellmail/bsd.squirrelmail.mk.itetcu2009-02-121-60/+2 * Use mail/squirellmail/bsd.squirrelmail.mk.itetcu2009-02-121-60/+4 * Update to 2.2:itetcu2009-02-123-66/+8 * Enhance bsd.squirrelmail.mk:itetcu2009-02-121-4/+21 * Update to 1.01.5 (distversion 1.015)lth2009-02-112-4/+4 * Update to 1.31.6 (distversion 1.316)lth2009-02-112-5/+5 * Update to 2.087.tobez2009-02-102-4/+4 * - Switch slang dependency to libslang2 (untested)pav2009-02-102-2/+2 * - Update to 1.5.19miwi2009-02-1010-123/+79 * - Update to 2.10.9miwi2009-02-093-4/+5 * - Update lang/mono to 2.0.1.flz2009-02-0918-9/+393 * - update to 5.3.1oliver2009-02-083-15/+15 * Fix default assignment of milterdkim_flags in rc.d script.stefan2009-02-072-2/+2 * - Update to 4.3.3beech2009-02-064-12/+10 * Chase libs for previous security/gsasl update.krion2009-02-062-3/+4 * Bump PORTREVISION for previous change.stefan2009-02-051-0/+1 * Fix a syntax error in the rc.d script.stefan2009-02-051-1/+1 * - Update to 4.1.10pgollucci2009-02-043-5/+4 * - Distfile rerolled up stream, exactly 1 fprintf() removedpgollucci2009-02-041-3/+3 * 2009-01-19 games/emacs-chess: has been broken for more than 6 monthsmiwi2009-02-0410-375/+0 * Update to 2.24.4.marcus2009-02-044-9/+8 * use my FreeBSD.org e-mail addresspgollucci2009-02-031-1/+1 * - Update to 1.401pgollucci2009-02-032-4/+4 * Mark as broken on sparc64: does not compile.linimon2009-02-031-1/+7 * Mark bogofilter and slave ports as broken on sparc64: coredump whilelinimon2009-02-031-0/+4 * - Connect osbf-lua to the build.lippe2009-02-021-0/+1 * OSBF-Lua (Orthogonal Sparse Bigrams with confidence Factor) is a Lua C module...lippe2009-02-025-0/+76 * - Python 2.5 support and various bugfixmiwi2009-02-012-3/+14 * - Update py-twisted-* to 8.2.0lwhsu2009-01-313-7/+10 * - Update to 1.4.3.1beech2009-01-317-87/+260 * Update to 0.10.5beech2009-01-312-4/+4 * - Update to 1.1.6beech2009-01-312-5/+4 * - Update to 1.1.10beech2009-01-314-31/+31 * Update to 0.09erwin2009-01-312-4/+4 * xpbiff requires libXaw and libXmu headers.flz2009-01-301-1/+1 * Reassign my p5-* ports to perl@ so more than one personerwin2009-01-305-5/+5 * Update my email address to @FreeBSD.org.beat2009-01-291-1/+1 * - update to version 0.6.0amdmi32009-01-294-5/+37 * - Add patch to reduce excess loggingamdmi32009-01-292-0/+18 * - Fix ETCDIR removal problem after recent pkg-plist updateglarkin2009-01-282-2/+2 * - Fix pkg-plistpgollucci2009-01-272-2/+2 * Remove bak filebeech2009-01-271-53/+0 * postfix-policyd-spf-perl is an RFC-4408-compliant SPF policy service forbeech2009-01-277-0/+172 * - Fix INDEXpgollucci2009-01-271-0/+1 * - Update to 2.5.6mnag2009-01-2710-40/+40 * - Update to 2.6-20090125mnag2009-01-274-17/+10 * This module implements various functions needed for making a ZConf backed mailpgollucci2009-01-274-0/+53 * - Update to 6.0.3sergei2009-01-262-7/+8 * - Update mail/dbmail23 port to the latest version 2.3.5beech2009-01-2610-44/+194 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-246-7/+7 * Bump the version of the curl shared library after the ftp/curl updateroam2009-01-238-4/+9 * . remove linux-glib2 as a dependency from linux-seamonkey/Makefile.commonbsam2009-01-221-0/+1 * - Deprecate, for removal on 2009-06-30, per maintainer's requestpav2009-01-211-0/+3 * - Update to 2.1nivit2009-01-215-54/+11 * Update to 2.3.28.marcus2009-01-202-5/+4 * - Update to 2.8.1wxs2009-01-203-25/+32 * The S/MIME plugin is now part of claws-mail.netchild2009-01-206-40/+10 * Update to 2007e.anders2009-01-19