Re: [gtk-list] CList in Gtk+ 1.1.1
- From: Stuart Parmenter <pavlov innerx net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] CList in Gtk+ 1.1.1
- Date: Wed, 19 Aug 1998 23:22:51 -0400
you need to catch the button_press_event
something like:
gtk_signal_connect (GTK_OBJECT (clist),
"button_press_event",
(GtkSignalFunc) button_event_press_cb,
(gpointer) bindex);
static void
button_event_press_cb (GtkCList * clist, GdkEventButton * event, gpointer data)
{
gint row, column;
Message *message;
BalsaIndex *bindex;
if (event->window != clist->clist_window)
return;
if (!event || event->button != 3)
return;
...
}
or something like that :)
-pav
On Wed, Aug 19, 1998 at 10:54:28PM -0400, Jeremy Wise wrote:
>
> Hello,
>
> I wrote an app using Gtk+ 1.0.5, and had a function bound to a right click
> on a CList row. I did this with select_row and then checking
> if event->button == 3. This worked just fine, until I compiled it against
> 1.1.1. Now, from what I can tell, the only event that signals a
> select_row is a click with the first mouse button.
>
> Is it possible to capture clicks with the 2nd or 3rd buttons, or even
> using the enter key? I noticed that you can now scroll through a CList
> with the arrow keys, which is a nice feature.
>
> Thanks in advance,
>
> Jeremy Wise
> jwise@pathwaynet.com
>
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
--
pavlov@pavlov.net
http://www.pavlov.net/
"Experimental dog, Salivating dog, Good dog, dinner bell
dinner bell do the bell thing, dinner bell dinner bell
ring..." - They Might Be Giants
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]