210
210
* assigning callback functions to them.
212
212
_prepare_header_bar: function () {
213
this.headerbar.pack_start ((this.new_post_btn = new Gtk.Button ({
214
let button_container = new Gtk.Box ({orientation: Gtk.Orientation.HORIZONTAL});
216
button_container.pack_start ((this.new_post_btn = new Gtk.Button ({
214
217
image: (new Gtk.Image ({icon_name: 'text-editor-symbolic'})),
215
tooltip_text: _("Create new post")
218
tooltip_text: _("Create new post"),
219
})), false, false, null);
218
this.headerbar.pack_start ((this.refresh_btn = new Gtk.Button({
221
button_container.pack_start ((this.refresh_btn = new Gtk.Button({
219
222
image: (new Gtk.Image ({icon_name: 'emblem-synchronizing-symbolic'})),
220
tooltip_text: _("Refresh the stream")
223
tooltip_text: _("Refresh the stream"),
224
})), false, false, null);
226
let special_btn_container_style_ctx = button_container.get_style_context ();
227
special_btn_container_style_ctx.add_class ("linked");
229
this.headerbar.pack_start (button_container);
223
231
this.headerbar.pack_end ((this.user_menu_btn = new UserButton.UserButton ({
224
232
image: (new Gtk.Image ({icon_name: 'mail-send-symbolic'})),