order of GSignal callbacks
- From: vishnu pobox com
- To: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: order of GSignal callbacks
- Date: Fri, 5 Oct 2001 18:21:13 -0700
Is there an easy way to write an assertion about the order of
callbacks? For example, i have:
g_signal_connect (instance, "set-span", G_CALLBACK (cb1), mydata);
// and somewhere else in my code
g_signal_connect (instance, "set-span", G_CALLBACK (cb2), mydata);
i'm already using all of the signal execution stages (before, during,
after) for ordering. i'm asking about checking ordering within a stage.
Something like:
g_assert (g_signal_handler_order_by_func
(instance, "set-span", 0 /*detail*/, cb1, cb2) < 0);
Could i write such a function using the current API?
--
Victory to the Divine Mother!!
http://sahajayoga.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]