aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-commands.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-05-31 03:39:47 +0800
committerJacob Leach <jleach@src.gnome.org>2001-05-31 03:39:47 +0800
commit225120f19f7e03a09f1ff899e747e68ccc41a93e (patch)
tree2f0697639ec2541fabcacab4543d703d6e5e7384 /shell/e-shell-folder-commands.c
parent1c8d79010681884cfddd5574e40cb2bdd0772c61 (diff)
downloadgsoc2013-evolution-225120f19f7e03a09f1ff899e747e68ccc41a93e.tar.gz
gsoc2013-evolution-225120f19f7e03a09f1ff899e747e68ccc41a93e.tar.zst
gsoc2013-evolution-225120f19f7e03a09f1ff899e747e68ccc41a93e.zip
Removed an unecessary sleep(2) call, so evolution will start up 2 seconds
2001-05-30 Jason Leach <jleach@ximian.com> * e-shell.c (e_shell_construct): Removed an unecessary sleep(2) call, so evolution will start up 2 seconds faster now. 2001-05-30 Jason Leach <jleach@ximian.com> * e-shell-view-menu.c: Connect the AddFolderToShortcutBar verb to their implementation functions. * e-shell-view.c (e_shell_view_get_current_shortcuts_group_num): New function, use it to find out which shourtcut group is currently open on the shortcut bar. * e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar): Implement this using new function described above. svn path=/trunk/; revision=10052
Diffstat (limited to 'shell/e-shell-folder-commands.c')
-rw-r--r--shell/e-shell-folder-commands.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/shell/e-shell-folder-commands.c b/shell/e-shell-folder-commands.c
index 7621294609..f0a39f0e4e 100644
--- a/shell/e-shell-folder-commands.c
+++ b/shell/e-shell-folder-commands.c
@@ -314,11 +314,20 @@ void
e_shell_command_add_to_shortcut_bar (EShell *shell,
EShellView *shell_view)
{
+ EShortcuts *shortcuts;
+ int group_num;
+ char *uri;
+
g_return_if_fail (shell != NULL);
g_return_if_fail (E_IS_SHELL (shell));
- g_return_if_fail (shell_view != NULL && E_IS_SHELL_VIEW (shell_view));
+ g_return_if_fail (shell_view != NULL);
+ g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
- g_warning ("To be implemented");
+ shortcuts = e_shell_get_shortcuts (shell);
+ group_num = e_shell_view_get_current_shortcuts_group_num (shell_view);
+ uri = e_shell_view_get_current_uri (shell_view);
+
+ e_shortcuts_add_shortcut (shortcuts, group_num, -1, uri);
}
ertions'>+1 * Add the radns users/groupsbapt2011-09-281-0/+1 * Clarify UPDATING entry for maiad and update vscan user to new home dir.crees2011-09-051-1/+1 * - Add for openerp-serverbeech2011-09-021-0/+1 * Copy line from master.passwd for operator, not passwd.crees2011-08-241-1/+1 * Allow operator user to be used by a port.crees2011-08-241-0/+1 * - Add missing colon delimitersunpoet2011-08-221-16/+16 * - Change /sbin/nologin to /usr/sbin/nologinsunpoet2011-08-221-16/+16 * - Sync jenkins's home as ${JENKINS_HOME} in devel/jenkinslwhsu2011-08-201-1/+1 * Correct name in GECOS field and update shell to nologin.zi2011-08-171-1/+1 * mail/mixminion now uses USERScrees2011-08-151-0/+1 * net/gini now uses USERScrees2011-08-121-0/+1 * - Change zenoss user to have a valid shell, and add an UPDATING entry forpav2011-08-081-1/+1 * net/gatekeeper now uses USERS/GROUPScrees2011-07-261-0/+1 * Add users for net-mgmt/zenosscrees2011-07-221-0/+1 * Add missing entries for tr-ircdcrees2011-07-091-0/+1 * audio/ventrilo-server now uses USERS and GROUPScrees2011-07-081-0/+1 * - Fix a crash when an invalid log file is specified.hrs2011-07-021-0/+1 * Remove duplicate dbxml line.crees2011-06-291-1/+0 * Fix nobody user -- should be master.passwd stylecrees2011-06-151-1/+1 * - Correct GROUP when postfix OPTION is selected [1]crees2011-06-141-0/+1 * . Add entries for dbxml forgotten in databases/dbXML update.glewis2011-06-121-0/+1 * Add an user 'daapd' for audio/mt-daapdrene2011-06-071-0/+1 * Add entries for ports which are converted to the new USERS paradigm.rene2011-06-071-0/+7 * - add a current version of yate (3.3.2p1). This is not a repocopy offlo2011-05-221-0/+1 * - update tor-devel to 0.2.3.1-alphabf2011-05-081-1/+1 * adsuck is a DNS relay that returns NXdomain for hosts that match names in abapt2011-05-071-0/+1 * - Updated to 3.0.0.b30 [1]glarkin2011-05-041-0/+1 * - update to 2.8.3bapt2011-04-241-0/+1 * - Replace pkg-install and pkg-deinstall with USERS and GROUPS in Makefilelwhsu2011-04-231-1/+1 * Update webcamd to 0.1.24.kwm2011-04-211-0/+1 * - Add _tcpproxy for new port net/tcpproxydhn2011-04-031-0/+1 * - rename hobbit to xymondinoex2011-04-021-1/+1 * - Pass -Dbsd_with_getifaddrs to CFLAGS in order to get a correct networkehaupt2011-03-291-0/+1 * Reserve IDs for multimedia/vdr and related ports.nox2011-03-271-0/+1 * Register uid and gid for net/get_iplayerbf2011-03-091-0/+1 * - Register UID and GID for devel/jenkinslwhsu2011-03-071-0/+1 * - Register uid and gid for net/crtmpserversylvio2011-02-281-0/+1 * - Register uid and gid for net-mgmt/icingachinsan2011-02-241-0/+1 * - Register uid and gid for net/erlyvideomiwi2011-02-021-0/+1 * - fix format of my last commit for UID 587ohauer2011-01-061-1/+1 * - register UID/GID 587 for assp user (port mail/assp)ohauer2011-01-061-0/+1 * - Move torrus user to next unoccupied slotpav2010-12-241-1/+1 * - Upgrade to USERS/GROUPSpav2010-12-231-0/+1 * - register UID/GID 542 for _flowd user (port net-mgmt/flowd)ohauer2010-12-211-0/+1 * Add the port of minidlna -- the DLNA-speaking service.mi2010-12-141-0/+1 * Dont declare ${sancp_flags} in command_args.wxs2010-12-131-0/+1 * - add radmind with uid/gid 506 for port sysutils/radmindohauer2010-11-281-0/+1 * . Add a port of the 2.x series of Dovecot:glewis2010-11-271-0/+1 * * Sets up a uhub UID and GID for the daemon to run as.stefan2010-11-111-0/+1 * Add "asterisk" user/group and "dahdi" group.fjoe2010-11-071-0/+1 * Add _tss and _pkcs11 to reserve for security/trousers andnork2010-11-071-0/+2 * Finally upgrade amanda-{server,client} to 3.2.0. Old 2.6.x waskuriyama2010-11-011-0/+1 * - add RC scriptswills2010-10-111-0/+1 * Archiveopteryx is an Internet mail server, optimised to supportashish2010-10-031-0/+1 * BackupPC is a high-performance, enterprise-grade system for backing up Linux,pgollucci2010-09-231-0/+1 * - Convert to USERS/GROUPSpgollucci2010-09-221-0/+1 * tWMS is a tiny WMS server written in Python and using tiles as aamdmi32010-09-081-0/+1 * Use the USERS/GROUPS mechanismlth2010-08-121-0/+1 * - Add user/group shellinabox with uid/gid 139jadawin2010-07-051-0/+1 * Add 'saned' user/group the Right Way.stefan2010-06-281-0/+1 * Fix missing fields in previous commitjpaetzel2010-06-131-1/+1 * - Add activemq for new port net/activemqwen2010-06-121-0/+1 * Add net/freeswitch-core, part of a revamp to the freeswitch portsjpaetzel2010-06-121-0/+1 * - fix Text for meta1dinoex2010-06-041-1/+1 * - Update to 0.7.3pav2010-05-141-0/+1 * Change the home directory of p4admin to /nonexistent because it is not needed.rene2010-05-101-1/+1 * - Added user and group for Drizzle database serverglarkin2010-04-291-0/+1 * - Reserve kumofs uid/gid.kuriyama2010-04-261-0/+1 * - Update to v1.2.6abrix2010-04-241-1/+1 * Minbif aims to use the libpurple library from the Pidgin projectbeat2010-04-151-0/+1 * - Add user and group mfs for MooseFS portwen2010-04-071-0/+1 * - Fix malformed lines, per new portlint(1) checkpav2010-04-061-4/+4 * - reserver GID/UID 924 for upcomming mail/postpalsitetcu2010-03-131-0/+1 * Massive cleanup of the Munin ports:des2010-02-251-0/+1 * - Add user and group for audio/liquidsoapwen2010-02-011-0/+1 * - Update Wolfpack Empire to 4.3.23johans2009-12-281-0/+1