[Gtk-sharp-list] emit_stop_by_name()
Dag Wieers
dag@wieers.com
Sat, 23 Aug 2003 06:43:09 +0200 (CEST)
Hi,
I'm looking for the Gtk-sharp equivalent of emit_stop_by_name(). As I want
to try the following solution for the annoying Gnome.About problem:
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq10.006.htp
---
Jon Willeke took the time to point out that in the case of GnomeAbout, to
avoid having a window be destroyed when you close it, you need to also
connect to the "response" handler:
def on_about1_response( dialog, arg1, *args ):
# system-defined GtkDialog responses are always negative, in which
# case we want to hide it
if arg1 < 0:
dialog.hide()
dialog.emit_stop_by_name( 'response' )
To keep the dialog from destroying itself you need to define a
"delete-event" handler that returns True and define a "response" handler
that stops emission of the signal.
---
Thanks in advance,
-- dag wieers, dag@wieers.com, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]