Re: g_signal_emit_by_name() with "notify::blah"
- From: Owen Taylor <otaylor redhat com>
- To: Kang Jeong-Hee <Keizi mail co kr>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_signal_emit_by_name() with "notify::blah"
- Date: 29 Jul 2003 08:09:55 -0400
On Tue, 2003-07-29 at 04:02, Kang Jeong-Hee wrote:
With glib 2.2.2 of rawhide, emission of notify::blah by g_signal_emit_by_name()
is weird;
When there's a callback connected to notify::blah, even if the blah is not installed,
g_signal_emit_by_name() with notify::blah call the handler.
GSignal doesn't know anything about properties. For it ::blah is just
a string/quark. The interpretation of it as a property name is just a
convention between those creating the signal and those connecting
to it.
g_object_notify(), OTOH, just warn that the blah is not a property of the class.
You have to use this anyways; calling g_signal_emit_* on signals you
didn't create is generally not allowed.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]