Re: [ruby-gnome2-devel-en] Button depressing
- From: Sjoerd Simons <sjoerd luon net>
- To: ruby-gnome2-devel-en lists sourceforge net
- Cc: gtk-list gnome org, gtkmm-list gnome org
- Subject: Re: [ruby-gnome2-devel-en] Button depressing
- Date: Sat, 27 May 2006 00:38:01 +0200
On Fri, May 26, 2006 at 02:54:03PM -0700, Joe Van Dyk wrote:
> I'm struggling how to reproduce that look in Gtk. I initially tried
> toggle and radio buttons, but I couldn't figure out how to tell a
> button to be active / toggled without generating a "toggled" event,
> which would tell the application to send a request to change the
> state.
>
> Any ideas? I'm guessing I have two solutions. One is to figure out
> how to get a normal button to look "depressed" like it does in the
> picture. The other solution is to figure out how to be able to tell a
> toggle button to be toggled without that button emitting a toggled
> event (which would tell the application to change state, when the user
> hasn't requested a state change).
You can use the "released signal" of the button for this. You just need to
ensure that you check the actual state of the button in the callback (As a
release outside of the button's area won't actually toggle it).
Sjoerd
--
The speed of anything depends on the flow of everything.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]