Hi,
after adding the missing return statement in GnomeIconSelection.get_icon (line
1045 in ui.py) the method works correctly if an icon has been selected.
However, if nothing is selected it gives a segmentation fault.
Cheers
Juergen
------------------------
from gtk import *
from gnome.ui import *
def get_icon(button, iconSel):
print iconSel.get_icon()
win = GtkWindow()
win.connect("destroy", mainquit)
vbox = GtkVBox()
iconSel = GnomeIconSelection()
iconSel.add_directory('/usr/share/pixmaps')
iconSel.show_icons()
vbox.pack_start(iconSel, expand=TRUE)
button = GtkButton("OK")
button.connect("clicked", get_icon, iconSel)
vbox.pack_start(button)
win.add(vbox)
win.show_all()
mainloop()
--
_____________________________________________________________________________
____/ __ / ____/ / Jürgen Ehrensberger
/ / / / / Laboratoire de Télécommunications
____/ ____/ ____/ / Ecole Polytechnique Fédérale de Lausanne
/ / / / 1015 Lausanne, Switzerland
_____/ _/ _/ _____/ Tel: +41 21 693 46 94, Fax: +41 21 693 26 83
Mail: [EMAIL PROTECTED]
_____________________________________________________________________________
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]