Re: Why treview highlight bar become gray?



On Tue, Nov 13, 2007 at 03:33:02PM -0800, Jian Zhang wrote:
> I'm having a problem with the highlight bar of my gtk treeveiw widget,
> and appreicate if someone can give me some advice.
>  
> If I create a treeview widget and add it into a top level gtk window
> widget directly (see scenario 1 below), the highlight bar is blue as
> expected. 
>  
> But if instead of adding the treeview widget into window directly I
> remove a pre-exist widget from toplevel window first and then add my
> treeview widget into it(see scenario 2 below), the highlight bar turns
> gray. Does anybody know what happened here and how to solve this?

The tree view is probably not focussed any more.  Tree views that do
not have focus draw their selection in grey.  Depending on your
application one solution is to just have the tree view to grab focus
using

  gtk_widget_grab_focus (tree_view);



regards,

-kris.


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