"draw" event is never called on a Gtk.DrawingArea in python

Bug #999519 reported by Valmantas Palikša
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gir-repository (Ubuntu)
Invalid
Undecided
Unassigned
gtk+3.0 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm trying this simple script, but the "on_draw" function never gets called. This worked fine before upgrading to Ubuntu 12.04

from gi.repository import GObject, Gtk, Gdk, GLib

a = Gtk.DrawingArea()

def on_draw(*args):
    print "Draw"

a.connect("draw", on_draw)

w = Gtk.Window()
w.add(a)
w.show_all()
Gtk.main()

Revision history for this message
Valmantas Palikša (walmis) wrote :

solved, apparently python-gi-cairo package was needed.

Changed in gir-repository (Ubuntu):
status: New → Invalid
Changed in gtk+3.0 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.