RE: [gtk-list] GtkList behaviour once more
- From: "Rostedt, Steven" <steven rostedt lmco com>
- To: "'gtk-list redhat com'" <gtk-list redhat com>
- Subject: RE: [gtk-list] GtkList behaviour once more
- Date: Wed, 02 Dec 1998 08:20:50 -0500
I've stated earlier that there should be a mask that
determines the button(s) that makes selections in the
lists. I've already updated my (now forked) code
to handle this and I would love to share it.
Maybe we should send a note to the gtk-devel-list
to get some attention. This is a development
topic.
At least have, as a minimum, a compiler
option of -DMULTI_SELECT and use
#ifndef MULTI_SELECT
if (event->button != 1)
return FALSE;
#endif
P.S. [off topic]
Is there a way that a callback function can flush out
pending events. (without executing them)
> -----Original Message-----
> From: Andreas Tille [SMTP:tille@physik.uni-halle.de]
> Sent: Wednesday, December 02, 1998 4:24 AM
> To: GTK User-List
> Subject: [gtk-list] GtkList behaviour once more
>
> Hello,
>
> is there any reason for the following which changes the
> GtkList behaviour in the GTK+1.1 versions?
>
> I heavyly relaed on the feature of GTK+1.0.x that list items
> can be selected with *ALL* mouse buttons but gtklist.c says:
>
> -----------------------8<-------------------------------------------
>
> static gint
> gtk_list_button_press (GtkWidget *widget,
> GdkEventButton *event)
> {
> GtkList *list;
> GtkWidget *item;
>
> g_return_val_if_fail (widget != NULL, FALSE);
> g_return_val_if_fail (GTK_IS_LIST (widget), FALSE);
> g_return_val_if_fail (event != NULL, FALSE);
>
> if (event->button != 1) /**************** WHY THAT?????
> ****************/
> return FALSE;
>
> list = GTK_LIST (widget);
> item = gtk_get_event_widget ((GdkEvent*) event);
>
> ------------------------>8-------------------------------------------
>
> Can anybody tell me a reason for this change?
>
> If there is any reason it seems that I have to live with
> it. Does anybody have a clue how to do selections with
> the other mouse buttons in this case??
> I explained in former (mostly unanswered :-() mails how it
> makes sense!
>
> If there isn't any importand reason please change it back to the old
> behaviour!
>
> Thank you very much for the whole well done job which
> gives great help in GUI programming.
>
> Kind regards
>
> Andreas.
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
> /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]