1
/* Copyright 2013 Yorba Foundation
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.
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;
13
public class AccountDialogPane(Gtk.Notebook parent_notebook) {
14
Object(orientation: Gtk.Orientation.VERTICAL, spacing: 4);
16
this.parent_notebook = parent_notebook;
17
page_number = parent_notebook.append_page(this, null);
20
public virtual void present() {
21
parent_notebook.set_current_page(page_number);