[Glade-users] Signal emitted by user or by code?



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





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]