Skip to content

Commit

Permalink
Fix GNOME 40 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrajnak committed Jun 2, 2021
1 parent 2b275d9 commit cd88102
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const ShutdownTimerButton = new Lang.Class({
this.button.add_child(this.icon_suspend_obj);
this.button.add_child(this.icon_restart_obj);
this.button.add_child(this.time);
this.actor.add_actor(this.button);
this.add_actor(this.button);

this._buildMenu();
},
Expand Down
6 changes: 3 additions & 3 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const AutomaticShutdownTimerPrefs = new GObject.Class({
let start = new Gtk.Button ({label: _("Start")});
start.connect("clicked", Lang.bind(this, function(){
settings.set_boolean("timer-start", !settings.get_boolean("timer-start"));
let w = this.get_window()
let w = this.get_root()
w.destroy()
}));
this.setTime.attach(start, 2, 8, 3, 1);
Expand Down Expand Up @@ -297,8 +297,8 @@ const AutomaticShutdownTimerPrefs = new GObject.Class({
this.opt.attach(hideTime, 3, 6, 1, 1);
stack.add_titled(this.opt, "settings", _("Settings"));

this.append(stack_switcher, false, true, 0);
this.append(stack, true, true, 0);
this.append(stack_switcher);
this.append(stack);

// Apply CSS styling
provider = new Gtk.CssProvider();
Expand Down

0 comments on commit cd88102

Please sign in to comment.