Re: GtkButtons and RUN_FIRST/RUN_LAST
- From: Owen Taylor <otaylor redhat com>
- To: Joel Becker <jlbec evilplan org>
- Cc: Tim Janik <timj gtk org>, gtk-devel-list gnome org
- Subject: Re: GtkButtons and RUN_FIRST/RUN_LAST
- Date: 26 Oct 2001 17:30:50 -0400
Joel Becker <jlbec evilplan org> writes:
> On Fri, Oct 26, 2001 at 10:04:27PM +0100, Joel Becker wrote:
> > What I'm doing is using GtkToggleButtons and doing the radio bit by hand
> > because the radio UI doesn't fit.  So I can emit_stop on a currently
> > active button.  It should work, so I guess I'll step down from this.  I
> 
> 	I lied.  I can't stop "toggled" from changing the state, because
> clicked already has, right?  So I guess I'll try to work around the new
> "clicked" semantic.
OK, two comments here:
 - The new ::clicked semantic is _exactly_ designed to make doing
   this type of thing easy. Instead of setting things back 
   you can do your own thing and simply stop_emit.
 - You do know about gtk_toggle_button_set_mode, right? If
   draw_indicator is FALSE, check buttons and radio buttons 
   look just like buttons.
Regards,
                                        Owen
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]