[gtk+] Fix building quartz backend
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix building quartz backend
- Date: Sun, 3 Aug 2014 21:23:00 +0000 (UTC)
commit 6ea36f3a187a0f8776a29bb96d9a7ec0bebf8af5
Author: TingPing <tingping tingping se>
Date: Mon Jun 23 19:04:56 2014 -0400
Fix building quartz backend
These were some api changes introduced in:
d930716
48db841
f6ee007
https://bugzilla.gnome.org/show_bug.cgi?id=732137
gtk/gtkapplication-quartz-menu.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkapplication-quartz-menu.c b/gtk/gtkapplication-quartz-menu.c
index 8c2ccf2..f21127e 100644
--- a/gtk/gtkapplication-quartz-menu.c
+++ b/gtk/gtkapplication-quartz-menu.c
@@ -176,7 +176,7 @@ icon_loaded (GObject *object,
[self didChangeToggled];
[self didChangeAccel];
- if (gtk_menu_tracker_item_get_has_submenu (trackerItem))
+ if (gtk_menu_tracker_item_get_has_link (trackerItem, G_MENU_LINK_SUBMENU))
[self setSubmenu:[[[GNSMenu alloc] initWithTitle:[self title] trackerItem:trackerItem] autorelease]];
}
@@ -280,7 +280,7 @@ icon_loaded (GObject *object,
- (void)didChangeVisible
{
- [self setHidden:gtk_menu_tracker_item_get_visible (trackerItem) ? NO : YES];
+ [self setHidden:gtk_menu_tracker_item_get_is_visible (trackerItem) ? NO : YES];
}
- (void)didChangeToggled
@@ -370,7 +370,8 @@ menu_item_removed (gint position,
{
tracker = gtk_menu_tracker_new (observable,
model,
- NO, NO,
+ NO,
+ YES,
NULL,
menu_item_inserted,
menu_item_removed,
@@ -386,7 +387,9 @@ menu_item_removed (gint position,
if (self != nil)
{
- tracker = gtk_menu_tracker_new_for_item_submenu (trackerItem,
+ tracker = gtk_menu_tracker_new_for_item_link (trackerItem,
+ G_MENU_LINK_SUBMENU,
+ YES,
menu_item_inserted,
menu_item_removed,
self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]