[9470] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: CList button selections
daemon@ATHENA.MIT.EDU (Lars Hamann)
Wed Oct 21 16:04:51 1998
Date: Wed, 21 Oct 1998 21:08:43 +0200
From: Lars Hamann <lars@gtk.org>
To: "Rostedt, Steven" <steven.rostedt@lmco.com>
Cc: gtk-list@redhat.com
Mail-Followup-To: "Rostedt, Steven" <steven.rostedt@lmco.com>,
gtk-list@redhat.com
In-Reply-To: <99AA2270B1E6D111BCE10000F805F17F010A17A1@emss35m02.owg.fs.lmco.com>; from Rostedt, Steven on Wed, Oct 21, 1998 at 11:38:26AM -0400
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
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