214
214
_prepare_header_bar: function () {
216
let button_container = new Gtk.Box ({orientation: Gtk.Orientation.HORIZONTAL});
218
button_container.pack_start ((this.new_post_btn = new Gtk.Button ({
216
this.headerbar.pack_start ((this.new_post_btn = new Gtk.Button ({
219
217
image: (new Gtk.Image ({icon_name: 'text-editor-symbolic'})),
220
218
tooltip_text: _("Create new post"),
221
})), false, false, null);
223
button_container.pack_start ((this.refresh_btn = new Gtk.Button({
221
this.new_post_btn.get_style_context ().add_class ("image-button");
223
this.headerbar.pack_start ((this.refresh_btn = new Gtk.Button({
224
224
image: (new Gtk.Image ({icon_name: 'emblem-synchronizing-symbolic'})),
225
225
tooltip_text: _("Refresh the stream"),
226
})), false, false, null);
228
let special_btn_container_style_ctx = button_container.get_style_context ();
229
special_btn_container_style_ctx.add_class ("linked");
231
this.headerbar.pack_start (button_container);
228
this.refresh_btn.get_style_context ().add_class ("image-button");
233
230
this.headerbar.pack_end ((this.user_menu_btn = new UserButton.UserButton ({
234
231
image: (new Gtk.Image ({icon_name: 'mail-send-symbolic'})),
247
244
this.settings.set_setting ("ui.x", win_pos[0]);
248
245
this.settings.set_setting ("ui.y", win_pos[1]);
249
246
this.settings.commit_to_file ();
252
_is_shown: function () {
253
let win_pos = this.window.get_position ();
254
JSON.stringify (win_pos);
255
if (win_pos[0] == undefined || win_pos[1] == undefined) {