1
/* This file is part of GPump, a Pump.io client.
3
* GPump (THE SOFTWARE) is made available under the terms and conditions of the
4
* GNU Lesser General Public Licence 3.0. A copy of the licence can be read
5
* in the file lgpl-3.0.txt in the root of this project.
9
const Gtk = imports.gi.Gtk;
10
const _ = imports.gettext.gettext;
11
const Lang = imports.lang;
17
* AccountUI is the UI that is used for handling of accounts.
19
const AccountUI = Lang.Class ({
27
title: _("GPump Accounts")
30
this._prepare_header_bar ();
35
_prepare_header_bar: function () {
36
this.headerbar = this.get_header_bar ();
37
this.headerbar.set_show_close_button (false);
38
this.headerbar.pack_end ((this.close_btn = new Gtk.Button ({
42
this.close_btn.connect ("clicked", Lang.bind (this, function () {
46
/* Install a custom style */
47
let special_btn_style_ctx = this.close_btn.get_style_context ();
48
special_btn_style_ctx.add_class ("suggested-action");
52
* add a new account to the list of accounts
54
_add_new_account: function () {
58
_prepare_view: function () {