From 5872276595223946c196bf0387aad20a27452ef9 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Mon, 16 Oct 2017 00:08:41 -0400 Subject: Apply position fix on popup to GTK 3.20 and earlier --- applets/notification_area/status-notifier/sn-dbus-menu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'applets/notification_area/status-notifier/sn-dbus-menu.c') diff --git a/applets/notification_area/status-notifier/sn-dbus-menu.c b/applets/notification_area/status-notifier/sn-dbus-menu.c index a9075bd6..855c2569 100644 --- a/applets/notification_area/status-notifier/sn-dbus-menu.c +++ b/applets/notification_area/status-notifier/sn-dbus-menu.c @@ -111,7 +111,6 @@ layout_update_item (SnDBusMenu *menu, { sn_dbus_menu_item_update_props (item, props); } - return item->submenu; } @@ -179,8 +178,11 @@ get_layout_cb (GObject *source_object, g_hash_table_remove_all (menu->items); layout_parse (menu, layout, GTK_MENU (menu)); - /*Reposition to accomodate size change if necessary*/ +#if GTK_CHECK_VERSION (3, 22, 0) + /* Reposition menu to accomodate any size changes */ + /* Menu size never changes with GTK 3.20 or earlier */ gtk_menu_reposition(GTK_MENU(menu)); +#endif g_variant_unref (layout); } -- cgit v1.2.1