~ubuntu-branches/ubuntu/precise/gwibber/precise-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2012-02-15 16:31:21 UTC
  • mto: This revision was merged to the branch mainline in revision 117.
  • Revision ID: package-import@ubuntu.com-20120215163121-fc08f29qhgnw8hr0
Tags: upstream-3.3.5
ImportĀ upstreamĀ versionĀ 3.3.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# Twitter widgets for Gwibber
19
19
#
20
20
 
21
 
import gtk
22
 
from gtk import Builder
 
21
from gi.repository import Gtk
23
22
from gwibber.microblog.util import resources
24
23
 
25
 
class AccountWidget(gtk.VBox):
 
24
class AccountWidget(Gtk.VBox):
26
25
  """AccountWidget: A widget that provides a user interface for configuring qaiku accounts in Gwibber
27
26
  """
28
27
  
29
28
  def __init__(self, account=None, dialog=None):
30
29
    """Creates the account pane for configuring qaiku accounts"""
31
 
    gtk.VBox.__init__( self, False, 20 )
32
 
    self.ui = gtk.Builder()
 
30
    Gtk.VBox.__init__( self, False, 20 )
 
31
    self.ui = Gtk.Builder()
33
32
    self.ui.set_translation_domain ("gwibber")
34
33
    self.ui.add_from_file (resources.get_ui_asset("gwibber-accounts-qaiku.ui"))
35
34
    self.ui.connect_signals(self)
36
35
    self.vbox_settings = self.ui.get_object("vbox_settings")
37
 
    self.pack_start(self.vbox_settings, False, False)
 
36
    self.pack_start(self.vbox_settings, False, False, 0)
38
37
    self.show_all()
39
38
    if dialog.ui:
40
39
       dialog.ui.get_object("vbox_create").show()