[9153] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Funny behaviour in gtk_clist_unselect_all()
daemon@ATHENA.MIT.EDU (Dave Cole)
Sat Oct 10 13:14:11 1998
Date: Sun, 11 Oct 1998 03:13:37 +1000
From: Dave Cole <dave@dccs.com.au>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
While trying to track down a bug in my application, I noticed
something really strange about gtk_clist_unselect_all() for
GTK_SELECTION_BROWSE lists.
In the process of unselecting all elements in the list, my
"select_row" handler is called with column = -1. When you do a browse
select with the clist, the "select_row" signal is also sent with
column = -1.
How do I tell the two signals apart?
Why is my "select_row" handler being called during
gtk_clist_unselect_all() anyway?
I noticed that in gtkclist.c:real_unselect_all() for
GTK_SELECTION_BROWSE, the function actually calls
select_row (clist, clist->focus_row, -1, NULL);
to perform the unselect all.
I am using gtk-1.1.2.
- Dave
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS dpu s-:+ a C++$ ULS++$ P+++$>++++ L++>+++$ E+>++ W N++ !o K w++$ O !M-
!V(-) PS+ PE- Y+ PGP !t-- 5++ X R tv b+ DI+++ D G e++ h--- r+++ y++++
------END GEEK CODE BLOCK------
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null