Gtk treeview to fit contents -



Gtk treeview to fit contents -

i have such gui situation:

window1>vbox1>vbox2>scrolledvindow1>treeview1>treestore1.

program takes info database through mysql c-api. depending on query here may info 0 rows on one thousand show in treeview1. constructing gui in glade set 'width request' window1 , 'height request' treeview1 able see info in rows.

is possible create window1 (or vbox2) automatically resizes amount of info in treeview1 avoid blank window on screen when have row or two. mean window should able 'hold' 1-24 rows resizing , after 24-th row scrollbars should come treeview1.

is possible in c language , how can accomplish that?

i suppose can't size gtktreeview based on contents, can utilize gtk-widget-set-size-request on own.

gtk

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -