/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to src/app.js

  • Committer: Gustav Hartvigsson
  • Date: 2014-08-03 19:59:24 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140803195924-jlfiz34c0a7as52i
* woops

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
const Gtk = imports.gi.Gtk;
13
13
const Lang = imports.lang;
14
14
const _ = imports.gettext.gettext;
15
 
const Gettext = imports.gettext;
 
15
 
16
16
 
17
17
const SettingsData = imports.settings_data;
18
18
/* const Style = imports.style; */
25
25
  _init: function () {
26
26
    this.settings = SettingsData.get_settings ();
27
27
    
28
 
    Gettext.bindtextdomain ("gpump", "./locale/"); //FIXME
29
 
    Gettext.textdomain ("gpump");
30
 
    GLib.set_prgname ("gpump");
31
 
    
32
28
    this.parent ({
33
29
      application_id: "org.gego.gpump",
34
30
      flags: Gio.ApplicationFlags.FLAGS_NONE,
73
69
    
74
70
    this.window.set_titlebar ((this.headerbar = new Gtk.HeaderBar({
75
71
      title: GLib.get_application_name (),
76
 
      subtitle: _("A Pump.io client"),
 
72
      subtitle: _('A Pump.io client'),
77
73
      show_close_button: true
78
74
    })));
79
75
    
109
105
    let menu = new Gio.Menu ();
110
106
    let section = new Gio.Menu ();
111
107
    
112
 
    section.append (_("Preferences"), "app.preferences");
 
108
    section.append ("Preferences", "app.preferences");
113
109
    menu.append_section (null, section);
114
110
    
115
111
    section = new Gio.Menu ();
168
164
  _prepare_header_bar: function () {
169
165
    this.headerbar.pack_start ((this.new_post_btn = new Gtk.Button ({
170
166
      image: (new Gtk.Image ({icon_name: 'text-editor-symbolic'})),
171
 
      tooltip_text: _("Create new post")
 
167
      tooltip_text: _('Create new post')
172
168
    })));
173
169
    
174
170
    this.headerbar.pack_start ((this.refresh_btn = new Gtk.Button({
175
171
      image: (new Gtk.Image ({icon_name: 'emblem-synchronizing-symbolic'})),
176
 
      tooltip_text: _("Refresh the stream")
 
172
      tooltip_text: _('Refresh the stream')
177
173
    })));
178
174
    
179
175
    this.headerbar.pack_end ((this.user_menu_btn = new Gtk.Button ({
180
176
      image: (new Gtk.Image ({icon_name: 'emblem-system-symbolic'})),
181
 
      tooltip_text: _("Switch and manage users")
 
177
      tooltip_text: _('Switch and manage users')
182
178
    })));
183
179
  }
184
180