diff options
author | Martin Wehner <martin.wehner@gmail.com> | 2006-04-14 11:57:23 +0000 |
---|---|---|
committer | Martin Wehner <mwehner@src.gnome.org> | 2006-04-14 11:57:23 +0000 |
commit | 4043d4cf03d8d46590e28771469b26d45e232de8 (patch) | |
tree | 6f0d792724967edf34d4ef7bb4617bfc6bfd6f41 /src/nautilus-spatial-window.c | |
parent | 6f2773401b3d536e1d90df90d271232d1a8c89d1 (diff) | |
download | nautilus-4043d4cf03d8d46590e28771469b26d45e232de8.tar.gz |
Don't add location bookmark for desktop windows. Fixes #334860.
2006-04-14 Martin Wehner <martin.wehner@gmail.com>
* src/nautilus-spatial-window.c: (action_add_bookmark_callback):
Don't add location bookmark for desktop windows. Fixes #334860.
Patch from Christian Neumair <chris@gnome-de.org>
Diffstat (limited to 'src/nautilus-spatial-window.c')
-rw-r--r-- | src/nautilus-spatial-window.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nautilus-spatial-window.c b/src/nautilus-spatial-window.c index 13a021907..79e8a3c3c 100644 --- a/src/nautilus-spatial-window.c +++ b/src/nautilus-spatial-window.c @@ -808,7 +808,13 @@ static void action_add_bookmark_callback (GtkAction *action, gpointer user_data) { - nautilus_window_add_bookmark_for_current_location (NAUTILUS_WINDOW (user_data)); + NautilusWindow *window; + + window = NAUTILUS_WINDOW (user_data); + + if (!NAUTILUS_IS_DESKTOP_WINDOW (window)) { /* don't bookmark x-nautilus-desktop:/// */ + nautilus_window_add_bookmark_for_current_location (window); + } } static void |