How to select an list item without focus



there is a list with several items in my application, when I click a button, I want to select/highlight (with blue background color), I do as following:
    gtk_list_select_item(GTK_LIST(MyList), ItemIndex);  //select this item
    gtk_list_scroll_vertical(GTK_LIST(MyList),
                               GTK_SCROLL_STEP_FORWARD,
                               0);  // scroll the vertical bar

after this, the focus moves from the button to the item which is selected now.

and How to select an list item without focus?

Thanks

Sent from the Gtk+ - General forum at Nabble.com:
How to select an list item without focus

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