I've added GTK+ 3.0 as being affected, as this is actually a bug in GTK+
itself, it seems. Or at least, if it's not in GTK+, then it's either
pygobject or libgirepository not correctly binding the methods.

It seems that software-center is making a valid call to
get_selection_bounds() on a GtkSearchEntry widget, which implements the
GtkEditable interface, and provides a get_selection-bounds() method.
However, for some reason, this is being seen as an unbound method when
called here, and the gtk_text_buffer_get_selection_bounds() method is
being called instead, incorrectly, causing the TypeError.

I will implement a workaround in software-center so that the TypeError
gets ignored (as the code in software-center is correct here), which may
cause the Cut and Copy menu items to no longer work for the search
entry. However, the standard key bindings, and the right-click context
menu on the entry, will still work to copy/cut the selected text. Also,
the Cut menu item will be removed as it's not used elsewhere, while Copy
is used for copying text from other parts of the UI.

** Also affects: software-center
   Importance: Undecided
       Status: New

** Also affects: software-center/stable-5-6
   Importance: Undecided
       Status: New

** Also affects: software-center/trunk
   Importance: Undecided
       Status: New

** Changed in: software-center/trunk
       Status: New => In Progress

** Changed in: software-center/trunk
     Assignee: (unassigned) => Rodney Dawes (dobey)

** Changed in: software-center/stable-5-6
       Status: New => Triaged

** Changed in: software-center/stable-5-6
     Assignee: (unassigned) => Rodney Dawes (dobey)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/1151621

Title:
  software-center crashed with TypeError in wrapped(): unbound method
  get_selection_bounds() must be called with TextBuffer instance as
  first argument (got SearchEntry instance instead)

Status in Ubuntu Software Center:
  In Progress
Status in Ubuntu Software Center stable-5-6 series:
  Triaged
Status in Ubuntu Software Center trunk series:
  In Progress
Status in “gtk+3.0” package in Ubuntu:
  New
Status in “software-center” package in Ubuntu:
  Confirmed

Bug description:
  I got this error while I tried to open software sources from ubuntu
  software center... but software sources was got opened...

  ProblemType: Crash
  DistroRelease: Ubuntu 13.04
  Package: software-center 5.5.5-0ubuntu1
  ProcVersionSignature: Ubuntu 3.8.0-9.18-generic 3.8.1
  Uname: Linux 3.8.0-9-generic i686
  ApportVersion: 2.9-0ubuntu2
  Architecture: i386
  Date: Thu Mar  7 13:26:33 2013
  EcryptfsInUse: Yes
  ExecutablePath: /usr/share/software-center/software-center
  InstallationDate: Installed on 2012-03-30 (341 days ago)
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
  InterpreterPath: /usr/bin/python2.7
  MarkForUpload: True
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/software-center
  PythonArgs: ['/usr/bin/software-center']
  SourcePackage: software-center
  Title: software-center crashed with TypeError in wrapped(): unbound method 
get_selection_bounds() must be called with TextBuffer instance as first 
argument (got SearchEntry instance instead)
  UpgradeStatus: Upgraded to raring on 2013-01-16 (49 days ago)
  UserGroups: adm admin cdrom dialout libvirtd lp lpadmin plugdev sambashare 
vboxusers

To manage notifications about this bug go to:
https://bugs.launchpad.net/software-center/+bug/1151621/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to