[9471] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] RE: CList button selections

daemon@ATHENA.MIT.EDU (Rostedt, Steven)
Wed Oct 21 16:42:51 1998

Date: Wed, 21 Oct 1998 16:42:12 -0400
From: "Rostedt, Steven" <steven.rostedt@lmco.com>
To: "'Lars Hamann'" <lars@gtk.org>
Cc: "'GTK-List'" <gtk-list@redhat.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

You're right, I'm using gtk+ 1.0.6

I've always been annoyed with Motif in its way of making it difficult to 
set which button you prefer to perform the selection.

I haven't looked at gtk+ 1.1.x, but can you change which button to perform
the selections? (a mask to set a policy (default to first button))

The more simple control, the better I like >:^)
> -----Original Message-----
> From:	Lars Hamann [SMTP:lars@gtk.org]
> Sent:	Wednesday, October 21, 1998 3:09 PM
> To:	Rostedt, Steven
> Cc:	gtk-list@redhat.com
> Subject:	Re: [gtk-list] CList button selections
> 
> On Wed, Oct 21, 1998 at 11:38:26AM -0400, Rostedt, Steven wrote:
> > Does anyone know how to limit which button selects a row in the CList
> > widget.
> 
> signal_connect to button_press_event of the clist and call
> gtk_signal_emit_stop_by_name for buttons you don't want to do a selection.
> 
> > I want to have each button perform a different task while on a clist,
> but I
> > only want
> > the left (or right) mouse button to make a selection.
> >
> > I wrote a quick patch to the gtkclist.c and gtkclist.h file to handle
> this.
> > If there isn't a solution
> > to this, I'm willing to submit the patch.  (it's really quit simple :)
> 
> You use gtk+ 1.0.x , right ? In gtk+ 1.1.x clist uses only button 1 for
> selections.
> 
> bye,
>   Lars

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post