Re: disabling a widget when no rows are selected problem

2005-09-06 Thread Colossus
Colossus wrote: This is what I did but why does the function gtk_tree_selection_count_selected_rows ( selection ) keep on returning 1 ? Solved by connecting the selection and not the treeview to the changed signal. -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/

Re: disabling a widget when no rows are selected problem

2005-09-05 Thread Colossus
John Coppens wrote: I suspect you use a tree_view or so? Yes. You can unselect a row using Ctrl-Click on the row. This is what I did but why does the function gtk_tree_selection_count_selected_rows ( selection ) keep on returning 1 ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor h

Re: disabling a widget when no rows are selected problem

2005-09-05 Thread John Coppens
On Mon, 05 Sep 2005 15:49:50 -0700 Colossus <[EMAIL PROTECTED]> wrote: > I have a gtk_image_menu_item_new_from_stock that I want to enable / > disable when rows are selected and not selected. The problem is that > when I click on a row who is selected it is not unselected but remains > selected.