/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-06-09 10:35:45 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140609103545-6p42i7pegn48tps3
* Can now load settings from file.
* added a few comments
* added a skoleton for a few functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
      flags: Gio.ApplicationFlags.FLAGS_NONE,
25
25
      register_session: true
26
26
    });
 
27
   GLib.set_application_name (_("GPump"));
27
28
    
28
29
    this.settings = SettingsData.get_settings ();
29
30
  },
48
49
   * the headerbar to it.
49
50
   */
50
51
  _prepareWindow: function () {
51
 
    this.window = new Gtk.Window ({
 
52
    this.window = new Gtk.ApplicationWindow ({
 
53
      application: this,
52
54
      type: Gtk.WindowType.TOPLEVEL,
53
 
      title: 'GPump',
 
55
      title: GLib.get_application_name (),
54
56
      default_height: 500,
55
57
      default_width: 500,
56
58
      height_request: 500,
57
 
      width_request: 500
 
59
      width_request: 500,
 
60
      window_position: Gtk.WindowPosition.CENTER
58
61
    });
59
62
    
60
63
    this.window.set_titlebar ((this.headerbar = new Gtk.HeaderBar({
61
 
      title: 'GPump',
 
64
      title: GLib.get_application_name (),
62
65
      subtitle: _('A Pump.io client'),
63
66
      show_close_button: true
64
67
    })));
65
68
    
 
69
    print ("derp!\n");
 
70
    
66
71
    this.window.add (( this.scroll_view = new Gtk.ScrolledWindow () ));
67
72
    this.scroll_view.add ((this.list_box = new Gtk.ListBox ()));
68
73