-
- // I don't want deleting the settings window to also remove the
- // preview window, but changing the toggle will do this, so temporarily
- // ignore the toggled signal
- signal_id = g_signal_lookup("toggled", GTK_TYPE_TOGGLE_TOOL_BUTTON);
- if (signal_id > 0)
- {
- // Valid signal id found. This should always succeed.
- handler_id = g_signal_handler_find((gpointer)widget, G_SIGNAL_MATCH_ID,
- signal_id, 0, 0, 0, 0);
- if (handler_id > 0)
- {
- // This should also always succeed
- g_signal_handler_block ((gpointer)widget, handler_id);
- }
- }
-