diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-12-06 06:56:54 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-12-06 06:56:54 +0800 |
commit | 225f98121898dbdd8d633843c1df70093fd2e5ba (patch) | |
tree | 0d8425fc618606d37e492afa660889d47b7c6bd6 /shell/e-shell-view-menu.c | |
parent | 7963f2012702629741b9afabc3390357db048a89 (diff) | |
download | gsoc2013-evolution-225f98121898dbdd8d633843c1df70093fd2e5ba.tar.gz gsoc2013-evolution-225f98121898dbdd8d633843c1df70093fd2e5ba.tar.zst gsoc2013-evolution-225f98121898dbdd8d633843c1df70093fd2e5ba.zip |
[Fix #7827, Switching desktops leaves the folder bar popped up.]
* e-shell-view.c (folder_bar_popup_map_callback): And grab the
keyboard as well.
(popdown_transient_folder_bar): Ungrab the keyboard as well.
(switch_on_folder_tree_click): Likewise.
[Fix #16507, Right Click -> View does nothing.]
* e-shell-view-menu.c: New verb "ActivateView".
(command_activate_view): New, callback for the "ActivateView"
verb.
svn path=/trunk/; revision=14897
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r-- | shell/e-shell-view-menu.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index b20c2e3545..e972184df4 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -284,6 +284,21 @@ command_new_folder (BonoboUIComponent *uih, } static void +command_activate_view (BonoboUIComponent *uih, + void *data, + const char *path) +{ + EShellView *shell_view; + char *uri; + + shell_view = E_SHELL_VIEW (data); + + uri = g_strconcat (E_SHELL_URI_PREFIX, get_path_for_folder_op (shell_view), NULL); + e_shell_view_display_uri (shell_view, uri); + g_free (uri); +} + +static void command_open_folder_in_new_window (BonoboUIComponent *uih, gpointer data, const char *path) @@ -592,6 +607,7 @@ BonoboUIVerb file_verbs [] = { }; BonoboUIVerb folder_verbs [] = { + BONOBO_UI_VERB ("ActivateView", command_activate_view), BONOBO_UI_VERB ("OpenFolderInNewWindow", command_open_folder_in_new_window), BONOBO_UI_VERB ("MoveFolder", command_move_folder), BONOBO_UI_VERB ("CopyFolder", command_copy_folder), |