Hi,
 
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?
 
Thanks,
Jian Zhang
 
 
===============================================================
 
Scenario 1:
If my code runs the  following sequence, the highlight bar is blue which
is fine with me:
 
    1. Create a gtk toplevel window;
    2. Create a gtk treeview widget and set selection;
    3. gtk_container_add treeview widget into window and gtk_show_all.
 
===============================================================
 
Scenario 2:
If my code works like this, the highlight bar turns gray:
 
    1. Create a gtk toplevel window A;
    2. Create a whatever widget (for example a table) B, then add it
into A;
    3. gtk_show_all (I can see B on my LCD);
    4. Create a treeview widget C and set selection;
    5. gtk_container_remove B from A;
    5. gtk_container_add C into A (Now I see C on my LCD but highlight
bar is gray instead of blue).
 
 
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to