GtkTreeView+vscroll in hbox



Hi,

 I want to place one gtktreeview(treeview) and one vertical scrollbar(vscroll) in one horizontal 
box(hbox).And at last want to pack this single horizontal box into a vertical box(vbox).

I have done this coding..

 gtk_box_pack_start (GTK_BOX(hbox), treeview, TRUE, TRUE, 0);
 gtk_box_pack_start (GTK_BOX(hbox), vscroll, TRUE, TRUE, 0);
 gtk_box_pack_start (GTK_BOX(vbox), hbox, TRUE, TRUE, 1);

the problem is, in hbox the width of hbox is equally divided for both treeview and vscroll.
So a huge gap is coming between treeview and vscroll.
I want treeview to occupy the whole hbox and only a little space should be left to fit vscroll.
How to do that using horizontal/vertical boxes.

Is there any other container or widgets to get the work done.


Regards,
Prasanna.


This message (including any attachment) is confidential and may be legally privileged.  Access to this 
message by anyone other than the intended recipient(s) listed above is unauthorized.  If you are not the 
intended recipient you are hereby notified that any disclosure, copying, or distribution of the message, or 
any action taken or omission of action by you in reliance upon it, is prohibited and may be unlawful.  Please 
immediately notify the sender by reply e-mail and permanently delete all copies of the message if you have 
received this message in error.



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