get_date() fails in gtk introspection

Bug #727158 reported by Michael Vogt on 2011-03-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTK+
Fix Released
Undecided
Martin Pitt
gtk+2.0 (Ubuntu)
Medium
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/main.py", line 1626, in on_previous_day_report_activate
    day = self.choose_date()
  File "/usr/lib/python2.7/dist-packages/gtimelog/main.py", line 1640, in choose_date
    y, m1, d = self.calendar.get_date()
  File "/usr/lib/pymodules/python2.7/gi/types.py", 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):

  http://git.gnome.org/browse/gtk+/commit/?id=34b573b07c13c9f7a4993ee9417a24313d2b6eba

I cherrypicked that into the gtk-2-24 branch

  http://git.gnome.org/browse/gtk+/commit/?h=gtk-2-24&id=e229f2998b1916d6b0101ce39a64e93933d9a5e4

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/gir1.2-gtk-2.0.install.in 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 .install.in + @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