Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions css_adjust.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ function handle_aggregate_menu(mode, width) {


// monitor changes in the system area
menuChangedAdd = aggregateMenu._system._actionsItem.actor.connect('actor_added', function() {
menuChangedAdd = aggregateMenu._system.buttonGroup.connect('actor_added', function() {

checkAggregatemenuwidth();
});

menuChangedRem = aggregateMenu._system._actionsItem.actor.connect('actor_removed', function() {
menuChangedRem = aggregateMenu._system.buttonGroup.connect('actor_removed', function() {

checkAggregatemenuwidth();
});
Expand Down Expand Up @@ -80,7 +80,7 @@ function checkAggregatemenuwidth() {
// run menu width adjustment if necessary


let actionChildren = aggregateMenu._system._actionsItem.actor.get_children();
let actionChildren = aggregateMenu._system.buttonGroup.get_children();
let allButtonWidth = actionChildren[1].get_width()*2;

//calculate new width
Expand Down
4 changes: 2 additions & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.buttonGroup.add(button, { expand: true, x_fill: false });
}

}
Expand All @@ -213,7 +213,7 @@ function _MenuEntry(set) {
else {

// remove the button
systemMenu._actionsItem.actor.remove_child(button);
systemMenu.buttonGroup.remove_child(button);
}

// reset menuitem/button variable
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
"url": "https://github.com/simonthechipmunk/turnoffdisplay",
"uuid": "turnoffdisplay@simonthechipmunk.noreply.com",
"gettext-domain": "turnoffdisplay",
"version": 15
"version": 16
}