Re: signal handlers in modules
- From: Owen Taylor <otaylor redhat com>
- To: Choe Hwanjin <krisna kldp org>
- Cc: gtk-i18n-list gnome org
- Subject: Re: signal handlers in modules
- Date: Mon, 1 Jul 2002 09:55:37 -0400 (EDT)
Choe Hwanjin <krisna kldp org> writes:
> I'm making gtk input module for korean.
> In that module, I launch new dialog that has many buttons.
> I read gtkimcontextxim.c. In this code, Owen explicitly
> dissconnected signal handlers.
> Should I dissconnect all the signal handlers explicitly
> or simply destroying the dialog is enough?
The reason that signal handlers are disconnected explicitely in this
function is that the signal handlers are not on the status window,
but on the the toplevel window, which is not being destroyed.
When you destroy a widget, all signal handlers for that
widget are automatically disconnected. You don't need
to disconnect them yourself.
Regards,
Owen
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]