get_date() fails in gtk introspection

Bug #727158 reported by Michael Vogt on 2011-03-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Martin Pitt
gtk+2.0 (Ubuntu)
Martin Pitt

Bug Description

When clicking on the menu "Report/Report for a previous day" I get the following backtrace (only when using introspect, not "normal" pygtk):

  File "/usr/lib/python2.7/dist-packages/gtimelog/", line 1626, in on_previous_day_report_activate
    day = self.choose_date()
  File "/usr/lib/python2.7/dist-packages/gtimelog/", line 1640, in choose_date
    y, m1, d = self.calendar.get_date()
  File "/usr/lib/pymodules/python2.7/gi/", line 44, in function
    return info.invoke(*args)
TypeError: get_date() takes exactly 4 argument(s) (1 given)

Martin Pitt (pitti) wrote :

This is a bug in the GTK annotations, I'll sort it out.

affects: gtimelog → gtk
Changed in gtk:
assignee: nobody → Martin Pitt (pitti)
status: New → In Progress
Changed in gtk+2.0 (Ubuntu):
status: New → In Progress
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Medium
Martin Pitt (pitti) wrote :

This was fixed a while ago in upstream master (i. e. GTK 3):

I cherrypicked that into the gtk-2-24 branch

and tested that this works with gtimelog.

Changed in gtk:
status: In Progress → Fix Released
Martin Pitt (pitti) wrote :

Patch applied to the gtk-2.0 packaging branch.

Changed in gtk+2.0 (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+2.0 - 2.24.1-1ubuntu2

gtk+2.0 (2.24.1-1ubuntu2) natty; urgency=low

  [ Martin Pitt ]
  * Add 000git_GI_calendar_get_date.patch: Fix missing (out) annotation for
    gtk_calendar_get_date(). (LP: #727158)

  [ Steve Langasek ]
  * Mark libgtk2.0-common, libgtk2.0-bin, libgtk2.0-doc, libgail-common,
    and libgail-doc as Multi-Arch: foreign.
  * Fix debian/ to reference @LIBDIR@ as other
    packages do, so that it builds cleanly for multiarch; but don't install
    to @LIBDIR@ yet because it needs to integrate with g-i-r.
  * Likewise, handle libgail with + @LIBDIR@ for multiarch.
 -- Martin Pitt <email address hidden> Mon, 07 Mar 2011 10:42:53 +0100

Changed in gtk+2.0 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers