Re: GtkList behaviour once more
- From: Tim Janik <timj gtk org>
- To: gtk-devel-list redhat com
- cc: GTK User-List <gtk-list redhat com>
- Subject: Re: GtkList behaviour once more
- Date: Wed, 2 Dec 1998 15:20:49 +0100 (CET)
On Wed, 2 Dec 1998, Andreas Tille wrote:
> 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!
this discussion has been raised before, but apparently no one showed
enough interest to actually implement the solution proposed:
> maybe GtkCList should provide a sophisticated interface for this, ala
>
> typedef enum
> {
> GTK_BUTTON_IGNORED = 0,
> GTK_BUTTON_SELECTS = 1 << 0,
> GTK_BUTTON_UNSELECTS = 1 << 1,
> GTK_BUTTON_DRAGS = 1 << 2,
> ...
> } GtkButtonFlags;
>
>
> gtk_clist_set_button_actions (GtkCList *clist,
> GtkButtonActionType button1_actions,
> GtkButtonActionType button2_actions,
> GtkButtonActionType button3_actions);
this does apply to GtkList as well, of course.
>
> Thank you very much for the whole well done job which
> gives great help in GUI programming.
>
> Kind regards
>
> Andreas.
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]