Skip to content
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.

Commit

Permalink
should fix Container.add() errors, should resolve #5
Browse files Browse the repository at this point in the history
  • Loading branch information
andyholmes committed Aug 11, 2017
1 parent 3efeae1 commit f79bbe5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const SettingsWidget = new Lang.Class({
use_markup: true,
label: "<b>" + title + "</b>"
});
this.box.add(label, { expand: false, fill: true });
this.box.pack_start(label, false, true, 0);
}

let section = new Gtk.Frame({
Expand Down Expand Up @@ -441,7 +441,7 @@ const SettingsWidget = new Lang.Class({
activatable: false,
selectable: false
});
section.list.add(itemRow), { expand: true, fill: false };
section.list.add(itemRow);

// Row Layout
let itemBox = new Gtk.Box({
Expand All @@ -450,7 +450,7 @@ const SettingsWidget = new Lang.Class({
valign: Gtk.Align.CENTER,
spacing: 12
});
itemRow.add(itemBox, { expand: true, fill: false });
itemRow.add(itemBox);

// Setting Summary
let itemLabel = new Gtk.Label({
Expand All @@ -464,7 +464,7 @@ const SettingsWidget = new Lang.Class({
hexpand: true,
label: label,
});
itemBox.add(itemLabel, { expand: true, fill: false });
itemBox.pack_start(itemLabel, false, true, 0);

itemBox.add(widget);

Expand Down

0 comments on commit f79bbe5

Please sign in to comment.