Funny behaviour in gtk_clist_unselect_all()



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------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]