found 642072 3.0.2-3
thanks

Well, I noticed a new version of python3-gobject in unstable. It seems
that the API has changed and I have to update the testing
program.

Anyway, with pyGobject 3.0.2-3, it still works well with python 2 but
receives SIGILL or SIGSEG with python 3.
#!/usr/bin/env python3

from gi.repository import Gtk

def popup_menu(si, button, act_time):
    global m
    print('popup_menu')
    m.popup(None, None,
            Gtk.StatusIcon.position_menu,
            si, button, act_time)

Gtk.init(None)
si = Gtk.StatusIcon(title='Info',
                    icon_name='info')
si.connect('popup-menu', popup_menu)
m = Gtk.Menu()
q = Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_QUIT, None)
q.connect('activate', lambda i: Gtk.main_quit())
m.append(q)
m.show_all()
Gtk.main()

Reply via email to