[shotwell/wip/dedeprecate] wip: Fix popup menus
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/dedeprecate] wip: Fix popup menus
- Date: Sat, 5 Nov 2016 00:28:29 +0000 (UTC)
commit 6229ef2700201b995a332694e30615af4c33a6eb
Author: Jens Georg <mail jensge org>
Date: Sat Nov 5 01:27:49 2016 +0100
wip: Fix popup menus
Signed-off-by: Jens Georg <mail jensge org>
src/Page.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Page.vala b/src/Page.vala
index 258c6e8..68559ac 100644
--- a/src/Page.vala
+++ b/src/Page.vala
@@ -1300,7 +1300,7 @@ public abstract class CheckerboardPage : Page {
private Gtk.Menu item_context_menu;
public virtual Gtk.Menu? get_item_context_menu() {
- if (item_context_menu != null) {
+ if (item_context_menu == null) {
var model = this.builder.get_object (item_context_menu_path)
as GLib.MenuModel;
item_context_menu = new Gtk.Menu.from_model (model);
@@ -1311,7 +1311,7 @@ public abstract class CheckerboardPage : Page {
private Gtk.Menu page_context_menu;
public override Gtk.Menu? get_page_context_menu() {
- if (page_context_menu != null) {
+ if (page_context_menu == null) {
var model = this.builder.get_object (page_context_menu_path)
as GLib.MenuModel;
page_context_menu = new Gtk.Menu.from_model (model);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]