~ubuntu-branches/ubuntu/saucy/geary/saucy-updates

« back to all changes in this revision

Viewing changes to src/client/accounts/account-dialog-pane.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-03-14 13:48:23 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130314134823-gyk5av1g508zyj8a
Tags: 0.3.0~pr1-0ubuntu1
New upstream version (FFE lp: #1154316), supports multiple account as
well as full conversation views with inline replies

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2013 Yorba Foundation
 
2
 *
 
3
 * This software is licensed under the GNU Lesser General Public License
 
4
 * (version 2.1 or later).  See the COPYING file in this distribution.
 
5
 */
 
6
 
 
7
// Base class for account dialog panes.
 
8
// Could be factored into a generic "NotebookPage" class if needed.
 
9
public class AccountDialogPane : Gtk.Box {
 
10
    private int page_number;
 
11
    private weak Gtk.Notebook parent_notebook;
 
12
    
 
13
    public class AccountDialogPane(Gtk.Notebook parent_notebook) {
 
14
        Object(orientation: Gtk.Orientation.VERTICAL, spacing: 4);
 
15
        
 
16
        this.parent_notebook = parent_notebook;
 
17
        page_number = parent_notebook.append_page(this, null);
 
18
    }
 
19
    
 
20
    public virtual void present() {
 
21
        parent_notebook.set_current_page(page_number);
 
22
    }
 
23
}
 
24