RE: Why treview highlight bar become gray?

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

 



That was the problem, now it works fine.

Thanks,
Jian 

-----Original Message-----
From: Kristian Rietveld [mailto:kris@xxxxxxxxxxx] 
Sent: Thursday, November 15, 2007 3:55 AM
To: Jian Zhang
Cc: gtk-list@xxxxxxxxx
Subject: 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.


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux