[nautilus] files-view: use better var naming
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] files-view: use better var naming
- Date: Mon, 14 Mar 2016 21:30:33 +0000 (UTC)
commit ad2512a410d6ff6f0509cd8a68adf9568aaaa1d9
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Mar 14 15:16:56 2016 +0100
files-view: use better var naming
enable_sort suggest to perform an action, sort_enabled suggest just
a read only information, which is what we want here.
src/nautilus-files-view.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 97c6ea7..487e830 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -6839,7 +6839,7 @@ nautilus_files_view_reset_view_menu (NautilusFilesView *view)
GActionGroup *view_action_group;
GVariant *variant;
GVariantIter iter;
- gboolean show_sort_trash, show_sort_search, show_sort_access, show_sort_modification, enable_sort;
+ gboolean show_sort_trash, show_sort_search, show_sort_access, show_sort_modification, sort_available;
const gchar *hint;
view_action_group = nautilus_files_view_get_action_group (view);
@@ -6847,11 +6847,11 @@ nautilus_files_view_reset_view_menu (NautilusFilesView *view)
gtk_widget_set_visible (view->details->visible_columns,
g_action_group_has_action (view_action_group, "visible-columns"));
- enable_sort = g_action_group_get_action_enabled (view_action_group, "sort");
+ sort_available = g_action_group_get_action_enabled (view_action_group, "sort");
show_sort_trash = show_sort_search = show_sort_modification = show_sort_access = FALSE;
- gtk_widget_set_visible (view->details->sort_menu, enable_sort);
+ gtk_widget_set_visible (view->details->sort_menu, sort_available);
- if (enable_sort) {
+ if (sort_available) {
variant = g_action_group_get_action_state_hint (view_action_group, "sort");
g_variant_iter_init (&iter, variant);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]