From c0ea2434e71c2162240ce358cc9ad889d8de7f2c Mon Sep 17 00:00:00 2001 From: Jordi Romera Date: Mon, 4 Nov 2019 19:15:52 +0100 Subject: [PATCH] Fix #16 error on Gnome 3.34 --- extension.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension.js b/extension.js index 62ab366..438d659 100644 --- a/extension.js +++ b/extension.js @@ -196,7 +196,7 @@ function _MenuEntry(set) { button.connect('clicked', _DisplayOff); // add the menuentry to the menu //systemMenu._actionsItem.actor.insert_child_at_index(button, 4); - systemMenu._actionsItem.actor.add(button, { expand: true, x_fill: false }); + systemMenu.menu.actor.add(button, { expand: true, x_fill: false }); } } @@ -213,7 +213,7 @@ function _MenuEntry(set) { else { // remove the button - systemMenu._actionsItem.actor.remove_child(button); + systemMenu.menu.actor.remove_child(button); } // reset menuitem/button variable