[Glade-users] Signal emitted by user or by code?
Tristan Van Berkom
tvb at gnome.org
Thu Oct 7 12:03:26 EDT 2010
On Fri, Oct 8, 2010 at 1:00 AM, John Delaney <johndelaney at gmail.com> wrote:
> I have a toggle button that's sometimes toggled by a user click, and
> at other times by gtk_toggle_button_set_active().
>
> Is there a way of detecting in the signal handler whether the toggle
> signal was emitted programmatically or by the user?
typically use g_signal_handlers_block/unblock_by_func() when
updating the toggle button programmatically.
Cheers,
-Tristan
> _______________________________________________
> Glade-users maillist - Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>
More information about the Glade-users
mailing list