Re: Some queries about 'configurability' of GtkButton.



>In my app, I wanted to be able to have 'multi-function' buttons (a la XFig
>for those old enough to remember this app) : basically, according to the
>mouse button that is pressed to activate the Gtk button, the behaviour would
>not be the same... The problem is that it seems that buttons only react to
>left mouse clicks and to no others.
>
>Then I told myself, 'oh well, you could try Shift-Click or Control-Click'
>then... The problem here is that the event that generates the 'activate'
>signal (basically, a mouse release while in the Button area) is not passed
>to the 'activate' callback. So this does not work either...

use the button_release_event signal of the button widget.

--p



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