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
# Ping.fm widgets for Gwibber
22
from gtk import Builder
23
from gwibber.microblog.util import resources
25
class AccountWidget(gtk.VBox):
26
"""AccountWidget: A widget that provides a user interface for configuring pingfm accounts in Gwibber
29
def __init__(self, account=None, dialog=None):
30
"""Creates the account pane for configuring pingfm accounts"""
31
gtk.VBox.__init__( self, False, 20 )
32
self.ui = gtk.Builder()
33
self.ui.set_translation_domain ("gwibber")
34
self.ui.add_from_file (resources.get_ui_asset("gwibber-accounts-pingfm.ui"))
35
self.ui.connect_signals(self)
36
self.vbox_settings = self.ui.get_object("vbox_settings")
37
self.pack_start(self.vbox_settings, False, False)
40
dialog.ui.get_object("vbox_create").show()