2
# Copyright (C) 2010 Canonical Ltd
4
# This program is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License version 2 as
6
# published by the Free Software Foundation.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
# Copyright (C) 2010 Ken VanDine <ken.vandine@canonical.com>
18
# Identi.ca widgets for Gwibber
22
from gtk import Builder
23
import gwibber.microblog
25
class AccountWidget(gtk.VBox):
26
"""AccountWidget: A widget that provides a user interface for configuring identica accounts in Gwibber
29
def __init__(self, account=None):
30
"""Creates the account pane for configuring identica accounts"""
31
gtk.VBox.__init__( self, False, 20 )
32
self.ui = gtk.Builder()
33
self.ui.add_from_file (gwibber.resources.get_ui_asset("gwibber-accounts-statusnet.ui"))
34
self.ui.connect_signals(self)
35
self.vbox_settings = self.ui.get_object("vbox_settings")
36
self.pack_start(self.vbox_settings, False, False)
37
self.vbox_settings.show_all()