+ // "event" hook
+ {
+ static bool hook_installed;
+ if (!hook_installed)
+ {
+ static guint sig_id;
+ if (sig_id == 0)
+ sig_id = g_signal_lookup("event", GTK_TYPE_WIDGET);
+ hook_installed = true;
+ g_signal_add_emission_hook(
+ sig_id, 0, wx_emission_hook, &hook_installed, NULL);
+ }
+ }
+ // "size_allocate" hook
+ // Needed to match the behaviour of the old idle system,
+ // but probably not necessary.
+ {
+ static bool hook_installed;
+ if (!hook_installed)
+ {
+ static guint sig_id;
+ if (sig_id == 0)
+ sig_id = g_signal_lookup("size_allocate", GTK_TYPE_WIDGET);
+ hook_installed = true;
+ g_signal_add_emission_hook(
+ sig_id, 0, wx_emission_hook, &hook_installed, NULL);
+ }
+ }