[10593] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] GtkList behaviour once more

daemon@ATHENA.MIT.EDU (Andreas Tille)
Wed Dec 2 04:25:07 1998

Date: Wed, 2 Dec 1998 10:24:11 +0100 (MET)
From: Andreas Tille <tille@physik.uni-halle.de>
To: GTK User-List <gtk-list@redhat.com>
cc: gtk-devel-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

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


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