Commit d48d3266 authored by Cosimo Cecchi's avatar Cosimo Cecchi

all: some padding/sizing misc fixes

parent 5133b721
......@@ -34,8 +34,7 @@ MainToolbar.prototype = {
},
_initGtkToolbar: function() {
this.widget = new Gtk.Toolbar({ hexpand: true,
icon_size: Gtk.IconSize.MENU });
this.widget = new Gtk.Toolbar({ icon_size: Gtk.IconSize.MENU });
this.widget.get_style_context().add_class('primary-toolbar');
},
......
......@@ -79,7 +79,7 @@ MainWindow.prototype = {
this._sidebar.connect('source-filter-changed', Lang.bind(this, this._onSourceFilterChanged));
this._viewContainer.add(this._sidebar.widget);
this._scrolledWin = new Gtk.ScrolledWindow();
this._scrolledWin = new Gtk.ScrolledWindow({ hscrollbar_policy: Gtk.PolicyType.NEVER });
this._viewContainer.add(this._scrolledWin);
this._loadMore = new Gtk.Button();
......
......@@ -27,6 +27,8 @@ const Signals = imports.signals;
const AccountsModel = imports.accountsModel;
const _SIDEBAR_WIDTH_REQUEST = 240;
function Sidebar() {
this._init();
}
......@@ -34,16 +36,19 @@ function Sidebar() {
Sidebar.prototype = {
_init: function() {
this._accountsModel = new AccountsModel.AccountsModel();
this.widget = new Gtk.ScrolledWindow();
this.widget = new Gtk.ScrolledWindow({ hscrollbar_policy: Gtk.PolicyType.NEVER,
width_request: _SIDEBAR_WIDTH_REQUEST });
this.widget.get_style_context().add_class('sidebar');
this._grid = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL });
this._grid = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL,
border_width: 6 });
this.widget.add_with_viewport(this._grid);
this._combobox = new Gtk.ComboBox();
this._combobox.set_model(this._accountsModel.model);
this._comboRenderer = new Gtk.CellRendererText();
this._combobox.pack_start(this._comboRenderer, true);
this._comboRenderer = new Gtk.CellRendererText({ width: 200 });
this._combobox.pack_start(this._comboRenderer, false);
this._combobox.add_attribute(this._comboRenderer,
"text", AccountsModel.ModelColumns.NAME);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment