[frogr] Restore sensitiveness for 'View' menu's items too
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Restore sensitiveness for 'View' menu's items too
- Date: Thu, 29 Nov 2012 10:03:41 +0000 (UTC)
commit 4ae1c2c7efe219a3d5888067bb1af1901aa54502
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Thu Nov 29 11:03:19 2012 +0100
Restore sensitiveness for 'View' menu's items too
src/frogr-main-view.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 397d66d..3ddaa8c 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -2004,6 +2004,12 @@ static gchar *pictures_actions[] = {
ACTION_UPLOAD_ALL
};
+static gchar *iconview_actions[] = {
+ ACTION_SORT_BY,
+ ACTION_SORT_IN_REVERSE_ORDER,
+ ACTION_ENABLE_TOOLTIPS
+};
+
static void
_update_sensitiveness (FrogrMainView *self)
{
@@ -2048,6 +2054,10 @@ _update_sensitiveness (FrogrMainView *self)
for (i = 0; i < G_N_ELEMENTS (pictures_actions); i++)
_update_sensitiveness_for_action (self, pictures_actions[i], has_pics);
+ /* Elements from the GMenu - for available pictures */
+ for (i = 0; i < G_N_ELEMENTS (iconview_actions); i++)
+ _update_sensitiveness_for_action (self, iconview_actions[i], TRUE);
+
/* Toolbar and contextual menu */
gtk_action_group_set_sensitive (priv->file_gtkactions, TRUE);
gtk_action_group_set_sensitive (priv->pictures_gtkactions, has_pics);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]