← Back to team overview

gwibber-bugs team mailing list archive

[Bug 739923] Re: GwibberPosterVBox reports an error and does not submit

 

Here's a code sample that doesn't require messing with the expose event:

import gtk

from gwibber.lib.gtk import widgets

class MicroblogDialog(gtk.Window):

    def __init__(self, contents, parent=None):
        gtk.Window.__init__(self)
        self.set_default_size(420,140)
        poster = widgets.GwibberPosterVBox(content=contents)
        poster.input.connect("submit",self.submitted)
        poster.button_send.connect("clicked", self.submitted)
        self.add(poster)
        self.show_all()

    def submitted(self, *args):
        self.destroy()

MicroblogDialog("This is a test")
gtk.main()

-- 
You received this bug notification because you are a member of Gwibber
Bug Heros, which is subscribed to Gwibber.
https://bugs.launchpad.net/bugs/739923

Title:
  GwibberPosterVBox reports an error and does not submit

Status in Gwibber:
  Fix Committed
Status in “gwibber” package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: gwibber

  The following output was supplied:

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/gwibber/lib/gtk/widgets.py", line 68, in on_input_changed
      self.input.textview.set_overlay_text(str(MAX_MESSAGE_LENGTH - cnt))
    File "/usr/lib/python2.7/dist-packages/gwibber/gwui.py", line 1091, in set_overlay_text
      if not self.pango_overlay:
  AttributeError: 'InputTextView' object has no attribute 'pango_overlay'

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: gwibber 2.91.91.1-0ubuntu1
  ProcVersionSignature: Ubuntu 2.6.38-7.36-generic 2.6.38
  Uname: Linux 2.6.38-7-generic i686
  NonfreeKernelModules: wl
  Architecture: i386
  Date: Mon Mar 21 19:56:57 2011
  InstallationMedia: Ubuntu-Netbook 10.04 "Lucid Lynx" - Alpha i386 (20100329)
  ProcEnviron:
   LANGUAGE=en_US:en
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: gwibber
  UpgradeStatus: Upgraded to natty on 2010-12-08 (103 days ago)