[nautilus] view: don't use nautilus_window_get_window_type()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] view: don't use nautilus_window_get_window_type()
- Date: Mon, 9 Jan 2012 22:24:27 +0000 (UTC)
commit f167ba4f3f3d571169c07584528e748391c5a833
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 2 00:37:38 2012 +0100
view: don't use nautilus_window_get_window_type()
Just check if the view is a NautilusDesktopIconView instead.
src/nautilus-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 78ffb35..b617080 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -8284,7 +8284,7 @@ real_update_menus (NautilusView *view)
show_open_alternate = file_list_all_are_folders (selection) &&
selection_count > 0 &&
g_settings_get_boolean (nautilus_preferences, NAUTILUS_PREFERENCES_ALWAYS_USE_BROWSER) &&
- !(nautilus_window_get_window_type (view->details->window) == NAUTILUS_WINDOW_DESKTOP);
+ !NAUTILUS_IS_DESKTOP_ICON_VIEW (view);
action = gtk_action_group_get_action (view->details->dir_action_group,
NAUTILUS_ACTION_OPEN_ALTERNATE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]