RE: [gtk-list] gtk_clist_select_row()




The best I can come up with at the moment is:

    gtk_clist_select_row(GTK_CLIST(clist), 3, 0);
    GTK_CLIST(clist)->focus_row = 3;

-tony


On 20-Mar-2000 Count Zero wrote:
> Lets try again...
> 
> Ok, gtk_clist_select_row() ALMOST works as expected... I have seen
> this
> posted
> to the list before, but never answered... When you call
> gtk_clist_select_row(clist, row, column) it does indeed select the
> row.
> The
> select-row signal is emitted, and the HIGHLIGHT changes to that
> row. 
> BUT. the
> "cursor" or "focus" does NOT move to that row. This causes a "boxed
> outline"
> of whatever the last row the user clicked on, and NO outline around
> the
> newly
> selected row. As a side effect of this, if the user then uses the
> up
> and down
> cursor keys, the focus JUMPS to where the boxed outline was...
> There
> either
> needs to be a gtk_clist_focus_row() function, or select_row()
> should move
> the
> focus too.  Any thoughts?
> 
> -Steve
> 
> 
> 
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
> /dev/null

---
E-Mail: trog@gtk.org
The PINK SOCKS were ORIGINALLY from 1952!!  But they went to MARS
around 1953!!

Go Bezerk! http://www.gtk.org/~trog



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