[eog/wip/gaction-migration] EogWindow: Add missing view-* actions to the window action group
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/wip/gaction-migration] EogWindow: Add missing view-* actions to the window action group
- Date: Sun, 4 Jan 2015 17:00:52 +0000 (UTC)
commit 5cfdbd1c2ab3f2af96d9b9a6cacd5a7879ad1599
Author: Felix Riemann <friemann gnome org>
Date: Sun Jan 4 17:57:23 2015 +0100
EogWindow: Add missing view-* actions to the window action group
These actions were part of it beforehand and were forgotten
in the initial GAction port.
https://bugzilla.gnome.org/show_bug.cgi?id=741050
src/eog-window.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index dfcd965..d0331fe 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -588,7 +588,10 @@ _eog_window_enable_action_group (GActionMap *map,
for (it = group; *it != NULL; it++) {
action = g_action_map_lookup_action (map, *it);
- g_simple_action_set_enabled (G_SIMPLE_ACTION (action), enable);
+ if (G_LIKELY (action))
+ g_simple_action_set_enabled (G_SIMPLE_ACTION (action), enable);
+ else
+ g_warning ("Action not found in action group: %s", *it);
}
}
@@ -601,6 +604,10 @@ _eog_window_enable_window_actions (EogWindow *window, gboolean enable)
"preferences",
"manual",
"about",
+ "view-gallery",
+ "view-sidebar",
+ "view-statusbar",
+ "view-fullscreen",
NULL
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]