[nautilus] do not display Templates Directory clue bar if templates directory is disabled
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] do not display Templates Directory clue bar if templates directory is disabled
- Date: Tue, 21 Aug 2012 10:07:03 +0000 (UTC)
commit 88f1af3c461505ba49f311698fa70b29b07627a2
Author: FrÃdÃric PÃters <fpeters 0d be>
Date: Tue Aug 21 10:33:43 2012 +0200
do not display Templates Directory clue bar if templates directory is disabled
https://bugzilla.gnome.org/show_bug.cgi?id=682335
src/nautilus-window-manage-views.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 442fca0..6db4598 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -1446,7 +1446,8 @@ update_for_new_location (NautilusWindowSlot *slot)
char *scripts_path = nautilus_get_scripts_directory_path ();
scripts_file = g_file_new_for_path (scripts_path);
g_free (scripts_path);
- if (nautilus_file_is_user_special_directory (file, G_USER_DIRECTORY_TEMPLATES)) {
+ if (nautilus_should_use_templates_directory () &&
+ nautilus_file_is_user_special_directory (file, G_USER_DIRECTORY_TEMPLATES)) {
nautilus_window_slot_show_special_location_bar (slot, NAUTILUS_SPECIAL_LOCATION_TEMPLATES);
} else if (g_file_equal (slot->location, scripts_file)) {
nautilus_window_slot_show_special_location_bar (slot, NAUTILUS_SPECIAL_LOCATION_SCRIPTS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]