/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/user_menu.js

  • Committer: Gustav Hartvigsson
  • Date: 2014-11-19 13:33:23 UTC
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: gustav.hartvigsson@gmail.com-20141119133323-zc5s913r2r2c5hdr
* added StackSwitcher for the main and meanwhile wievs.
* hooked up the account dialoug, so it is displayed clicking on the accounts
  button in the user menu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
const _ = imports.gettext.gettext;
15
15
const Lang = imports.lang;
16
16
 
 
17
const AccountUI = imports.account_ui;
17
18
 
18
19
const UserMenu = new Lang.Class ({
19
20
  Name: "UserMenu",
56
57
    );
57
58
    
58
59
    this.accounts_btn.connect ("clicked", Lang.bind (this, function () {
59
 
      print ("Blubb!")
 
60
      let account_ui = new AccountUI.AccountUI ();
 
61
      this.hide ();
 
62
      account_ui.set_transient_for (this.get_toplevel());
 
63
      account_ui.run ();
60
64
    }));
61
65
    
62
66
    this.connect ("show", Lang.bind (this, function () {