[shotwell] Fix issue when deleting image in Fullscreen
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Fix issue when deleting image in Fullscreen
- Date: Thu, 2 Mar 2017 22:34:09 +0000 (UTC)
commit 8b6b33f14aecf448a14eef5372219d4f524bccab
Author: Jens Georg <mail jensge org>
Date: Thu Mar 2 21:49:57 2017 +0100
Fix issue when deleting image in Fullscreen
Signed-off-by: Jens Georg <mail jensge org>
src/Page.vala | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/Page.vala b/src/Page.vala
index 06454d8..2a13221 100644
--- a/src/Page.vala
+++ b/src/Page.vala
@@ -268,7 +268,11 @@ public abstract class Page : Gtk.ScrolledWindow {
public virtual void switching_from() {
in_view = false;
- remove_actions(AppWindow.get_instance());
+ //remove_actions(AppWindow.get_instance());
+ var map = get_container() as GLib.ActionMap;
+ if (map != null) {
+ remove_actions(map);
+ }
if (toolbar_path != null)
toolbar = null;
}
@@ -276,7 +280,10 @@ public abstract class Page : Gtk.ScrolledWindow {
public virtual void switched_to() {
in_view = true;
add_ui();
- add_actions(AppWindow.get_instance());
+ var map = get_container() as GLib.ActionMap;
+ if (map != null) {
+ add_actions(map);
+ }
int selected_count = get_view().get_selected_count();
int count = get_view().get_count();
init_actions(selected_count, count);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]