~khurshid-alam/gwibber/gwibber-hack

« back to all changes in this revision

Viewing changes to gwibber/microblog/plugins/pingfm/gtk/pingfm/__init__.py

  • Committer: Khurshid Alam
  • Date: 2012-04-06 14:38:38 UTC
  • Revision ID: khurshid.alam@linuxmail.org-20120406143838-nz7hjg8vtzi2wl7i
initial revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Copyright (C) 2010 Canonical Ltd
 
3
#
 
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.
 
7
#
 
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.
 
12
#
 
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/>.
 
15
#
 
16
# Copyright (C) 2010 Ken VanDine <ken.vandine@canonical.com>
 
17
#
 
18
# Ping.fm widgets for Gwibber
 
19
#
 
20
 
 
21
import gtk
 
22
from gtk import Builder
 
23
from gwibber.microblog.util import resources
 
24
 
 
25
class AccountWidget(gtk.VBox):
 
26
  """AccountWidget: A widget that provides a user interface for configuring pingfm accounts in Gwibber
 
27
  """
 
28
  
 
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)
 
38
    self.show_all()
 
39
    if dialog.ui:
 
40
      dialog.ui.get_object("vbox_create").show()