/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-12-15 22:21:14 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20141215222114-iyjn2xbp41jb212u
* Made sure that the icons are square
  * Fixed the useravatar size to fasilitate this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
   */
214
214
  _prepare_header_bar: function () {
215
215
    
216
 
    let button_container = new Gtk.Box ({orientation: Gtk.Orientation.HORIZONTAL});
217
 
    
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);
222
 
    
223
 
    button_container.pack_start ((this.refresh_btn = new Gtk.Button({
 
219
    })));
 
220
    
 
221
   this.new_post_btn.get_style_context ().add_class ("image-button");
 
222
    
 
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);
227
 
    
228
 
    let special_btn_container_style_ctx = button_container.get_style_context ();
229
 
    special_btn_container_style_ctx.add_class ("linked");
230
 
    
231
 
    this.headerbar.pack_start (button_container);
 
226
    })));
 
227
    
 
228
    this.refresh_btn.get_style_context ().add_class ("image-button");
232
229
    
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 ();
250
 
  },
251
 
  
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) {
256
 
      return false;
257
 
    } else {
258
 
      return true;
259
 
    }
260
247
  }
261
248
  
262
249
});