aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-08-17 08:33:46 +0800
committerJacob Leach <jleach@src.gnome.org>2001-08-17 08:33:46 +0800
commitb82937e47c24dc593479045ba3f6f6ac18c10534 (patch)
tree55e0160d308f00d7584dd9ae21e61bc14d048a58
parent84332a1f1138c59d6c9522c56605fd5679d3ddbf (diff)
downloadgsoc2013-evolution-b82937e47c24dc593479045ba3f6f6ac18c10534.tar.gz
gsoc2013-evolution-b82937e47c24dc593479045ba3f6f6ac18c10534.tar.zst
gsoc2013-evolution-b82937e47c24dc593479045ba3f6f6ac18c10534.zip
Desensitize the move/copy/delete/rename in the menus (including right
2001-08-16 Jason Leach <jleach@ximian.com> * e-shell-view.c (folder_selected_cb): Desensitize the move/copy/delete/rename in the menus (including right click) for stock folders. * Evolution-Icon.idl: Actually remove this file from CVS (its contents are now in Evolution-common.idl). svn path=/trunk/; revision=12139
-rw-r--r--shell/ChangeLog9
-rw-r--r--shell/Evolution-Icon.idl23
-rw-r--r--shell/e-shell-view.c29
3 files changed, 38 insertions, 23 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 2e36d7450b..70198c682e 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,12 @@
+2001-08-16 Jason Leach <jleach@ximian.com>
+
+ * e-shell-view.c (folder_selected_cb): Desensitize the
+ move/copy/delete/rename in the menus (including right click) for
+ stock folders.
+
+ * Evolution-Icon.idl: Actually remove this file from CVS (its
+ contents are now in Evolution-common.idl).
+
2001-08-16 Ettore Perazzoli <ettore@ximian.com>
* e-shell-view-menu.c: Remove the Help menu verbs and add a
diff --git a/shell/Evolution-Icon.idl b/shell/Evolution-Icon.idl
deleted file mode 100644
index f8a3d66817..0000000000
--- a/shell/Evolution-Icon.idl
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * Icon definition.
- *
- * Authors:
- * Ettore Perazzoli <ettore@ximian.com>
- *
- * Copyright (C) 2000, 2001 Ximian, Inc.
- */
-
-module GNOME {
-module Evolution {
-
-struct Icon {
- short width, height;
- boolean hasAlpha;
- sequence <octet> rgba_data; // Row-by-row, left-to-right, top-to-bottom RGBA bytes
-};
-typedef sequence <Icon> AnimatedIcon;
-
-};
-};
-
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index d1d9129446..0c4f548582 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -546,8 +546,37 @@ folder_selected_cb (EStorageSetView *storage_set_view,
void *data)
{
EShellView *shell_view;
+ EShellViewPrivate *priv;
+ EStorageSet *storage_set;
+ EFolder *folder;
shell_view = E_SHELL_VIEW (data);
+ priv = shell_view->priv;
+
+ /* Adjust sensitivity for menu options depending on whether
+ the folder selected is a stock folder */
+ storage_set = e_shell_get_storage_set (priv->shell);
+ folder = e_storage_set_get_folder (storage_set, path);
+ if (folder) {
+ BonoboUIComponent *uic;
+ char *txt;
+
+ if (e_folder_get_is_stock (folder))
+ txt = "0";
+ else
+ txt = "1";
+
+ uic = e_shell_view_get_bonobo_ui_component (shell_view);
+
+ bonobo_ui_component_set_prop (uic, "/commands/MoveFolder",
+ "sensitive", txt, NULL);
+ bonobo_ui_component_set_prop (uic, "/commands/CopyFolder",
+ "sensitive", txt, NULL);
+ bonobo_ui_component_set_prop (uic, "/commands/DeleteFolder",
+ "sensitive", txt, NULL);
+ bonobo_ui_component_set_prop (uic, "/commands/RenameFolder",
+ "sensitive", txt, NULL);
+ }
switch_on_folder_tree_click (shell_view, path);
}
ftp?id=09f9633cb617878a6611cfdfb630e55d957188ef'>Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-07-302-1/+2 * Remove leftover of testingSunpoet Po-Chuan Hsieh2018-07-281-1/+2 * Fix r475433Sunpoet Po-Chuan Hsieh2018-07-281-1/+3 * ftp/curl: Update to 7.61.0Steve Wills2018-07-273-5/+15 * PHP 7.1 and PHP 7.2: add TEST_TARGET to all extensionsTorsten Zuehlsdorff2018-07-244-0/+8 * - Update to 1.95-4.11TAKATSU Tomonari2018-07-202-4/+4 * Remove all := from BUILD_DEPENDS, here are never needed.Mathieu Arnold2018-07-092-3/+3 * Mark these ports broken on mips64 and/or mips.Mark Linimon2018-07-011-0/+3 * lang/ghc: Update to 8.4.3 and bump PORTREVISION's of all Haskell ports.Gleb Popov2018-06-301-1/+1 * Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mkTobias C. Berner2018-06-292-4/+4 * - Whitespace fixDmitry Marakasov2018-06-232-2/+2 * Use PY_FLAVOR for dependencies.Mathieu Arnold2018-06-212-3/+3 * Fix readline detection on 10.xGanael LAPLANCHE2018-06-131-0/+4 * Fix readline detection with a non-standard LOCALBASEGanael LAPLANCHE2018-06-121-0/+4 * Update to 7.43.0.2Sunpoet Po-Chuan Hsieh2018-06-042-4/+4 * Sort USESSunpoet Po-Chuan Hsieh2018-06-041-1/+1 * Update GNUTLS and NSS optionsSunpoet Po-Chuan Hsieh2018-06-041-2/+4 * Adjust USES to fix building on gcc-based archs (in particular, powerpc64).Mark Linimon2018-06-031-3/+1 * Update to 0.9.6Sunpoet Po-Chuan Hsieh2018-05-312-4/+4 * Update to 0.9.5Sunpoet Po-Chuan Hsieh2018-05-302-4/+4 * Update to version 4.9.7.Dmitry Sivachenko2018-05-282-4/+4 * Update WWWSunpoet Po-Chuan Hsieh2018-05-287-7/+7 * Update lang/ghc 8.4.2 and the hs-* ports the newer versionsTobias C. Berner2018-05-261-1/+1 * - Update to 3.0.3.1Martin Wilke2018-05-204-5/+16 * Update to 0.7.0Sunpoet Po-Chuan Hsieh2018-05-195-36/+12 * Update to 7.60.0Sunpoet Po-Chuan Hsieh2018-05-173-5/+7 * Update to netdumpd-20180511.Mark Johnston2018-05-112-4/+4 * ftp/wget: Upgrade from 1.19.4 to 1.19.5Vasil Dimov2018-05-102-5/+4 * ftp/py-sftp: Fix license informationYuri Victorovich2018-05-081-1/+1 * - Update to 1.5.4Li-Wen Hsu2018-05-062-5/+4 * ftp/netdumpd:Sean Bruno2018-05-021-0/+3 * Drop support for expired security/polarssl13Rene Ladan2018-05-021-4/+2 * Switch all pypi.python.org WWWs to a new PyPi home pypi.org whereDmitry Marakasov2018-04-261-1/+1 * Update to netdumpd-20180424.Mark Johnston2018-04-252-4/+4 * Update to version 4.9.6.Dmitry Sivachenko2018-04-182-4/+4 * Update to netdumpd-20180411.Mark Johnston2018-04-122-4/+4 * - Update to 3.2TAKATSU Tomonari2018-04-102-5/+4 * - Migrate Mk/bsd.fpc.mk to Mk/Uses/fpc.mkJose Alonso Cardenas Marquez2018-04-051-1/+1 * Switch to ld.bfd by default as ld.ldd doesn't have built-in defaultKirill Ponomarev2018-03-301-0/+1 * Make libgnome and libgnomeui not implying esound dependencyBaptiste Daroussin2018-03-261-2/+2 * Fix build with LibreSSL 2.7Sunpoet Po-Chuan Hsieh2018-03-251-0/+28 * - Update to 1.95-4.10TAKATSU Tomonari2018-03-202-6/+8 * Update to 7.59.0Sunpoet Po-Chuan Hsieh2018-03-153-8/+13 * - Add missing @dir into plistDmitry Marakasov2018-03-131-0/+1 * Bump PORTREVISIONs of all users of math/mpc that we just updated toGerald Pfeifer2018-03-112-1/+2 * - Update to 3.1TAKATSU Tomonari2018-03-092-4/+4 * Introduce PHP flavors.Mathieu Arnold2018-03-099-45/+4 * A simple interface to SFTP.Martin Wilke2018-03-084-0/+31 * Update netdumpd to 20180305.Mark Johnston2018-03-062-4/+4 * New port: ftp/py-requests-ftp: Ftp transport adapter for requestsYuri Victorovich2018-03-054-0/+27 * - Update to 4.9Danilo Egea Gondolfo2018-03-052-4/+4 * Work around the lack of definition of union semun per POSIX.Brooks Davis2018-03-031-0/+1 * Update to 0.40Sunpoet Po-Chuan Hsieh2018-03-032-4/+4 * Update dns/libpsl to 0.20.1Sunpoet Po-Chuan Hsieh2018-02-272-2/+2 * Update options dependencySunpoet Po-Chuan Hsieh2018-02-271-0/+2 * Update dns/libpsl to 0.20.0Sunpoet Po-Chuan Hsieh2018-02-242-1/+2 * Fix build with CURL_DEBUG enabledSunpoet Po-Chuan Hsieh2018-02-181-3/+4 * security/openssl-devel: Remove BROKEN from some portsBernard Spil2018-02-153-15/+1 * Rename KDE4 meta portsTobias C. Berner2018-02-101-1/+1 * Switch C compiler used to compile GHC to base Clang.Tobias C. Berner2018-02-101-1/+1 * Update to netdumpd-20180205.Mark Johnston2018-02-062-4/+4 * Update pkg-descrSunpoet Po-Chuan Hsieh2018-02-041-3/+14 * Allow concurrent installation (USE_PYTHON=concurrent)Sunpoet Po-Chuan Hsieh2018-02-031-2/+2 * Fix r460400Sunpoet Po-Chuan Hsieh2018-02-031-1/+2 * Add more optionsSunpoet Po-Chuan Hsieh2018-01-301-15/+26 * Fix BROTLI optionSunpoet Po-Chuan Hsieh2018-01-301-1/+1 * Remove LIBSSH option to avoid circular dependencySunpoet Po-Chuan Hsieh2018-01-281-5/+1 * Update to 7.58.0Sunpoet Po-Chuan Hsieh2018-01-253-5/+12 * ftp/wget: Upgrade from 1.19.2 to 1.19.4Vasil Dimov2018-01-232-4/+4 * Return kevlo's ports to the pool, he handed in his commit bit.Rene Ladan2018-01-121-1/+1 * - Update to 4.8Danilo Egea Gondolfo2017-12-272-4/+4 * Remove unneeded USE_AUTOTOOLS.Tijl Coosemans2017-12-251-1/+0 * Convert to USES=autoreconf.Tijl Coosemans2017-12-251-2/+3 * New slaveport: ftp/php72-fastdfsJochen Neumeister2017-12-192-0/+13 * ftp/php*-fastdfs: Remake to Master/Slave PortsJochen Neumeister2017-12-149-88/+13 * Update to 7.29.0-42.el7_4.1.Tijl Coosemans2017-12-112-13/+13 * Update to 7.43.0.1Sunpoet Po-Chuan Hsieh2017-12-112-5/+4 * Disable brotli support to fix build with old brotli installedSunpoet Po-Chuan Hsieh2017-12-081-1/+1 * Add DOCS optionSunpoet Po-Chuan Hsieh2017-12-082-0/+19 * Update to 0.56Sunpoet Po-Chuan Hsieh2017-12-042-4/+4 * Fix configure options for gnustep-makeDavid Chisnall2017-12-032-2/+2 * - Update WWWDmitry Marakasov2017-12-031-1/+1 * Update to 7.57.0Sunpoet Po-Chuan Hsieh2017-12-023-12/+12 * Convert Python ports to FLAVORS.Mathieu Arnold2017-11-302-3/+3 * - Update to 1.5.3Li-Wen Hsu2017-11-302-5/+4 * For ports that are marked BROKEN on armv6, and also fail to build onMark Linimon2017-11-302-0/+2 * php*-fastdfs: remove hard-code patchingJochen Neumeister2017-11-256-37/+5 * PHP 7.2: Remove bad repocopies.Torsten Zuehlsdorff2017-11-172-22/+0 * Add PHP 7.2 RC6Torsten Zuehlsdorff2017-11-165-0/+46 * - Update to 4.6Danilo Egea Gondolfo2017-11-062-3/+4 * ftp/fastdfs: Add status commandDanilo G. Baio2017-11-053-0/+14 * Fix whitespace issues (mixed tab/spaces, alignment) in a few ports.Jimmy Olgeni2017-11-031-1/+1 * Fix whitespace issues (mixed tab/spaces, alignment) in a few ports.Jimmy Olgeni2017-10-311-2/+2 * Update to 1.0.47Sunpoet Po-Chuan Hsieh2017-10-282-5/+4 * ftp/wget: Upgrade from 1.19.1 to 1.19.2Vasil Dimov2017-10-272-5/+5 * Update Linux CentOS 7 ports to 7.4.1708.Tijl Coosemans2017-10-272-13/+13 * Update to 0.39Sunpoet Po-Chuan Hsieh2017-10-262-4/+4