GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Oct 23, 2014 7:57 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Set GtkTreeView widget height
PostPosted: Wed Sep 18, 2013 4:08 pm 
Offline
Familiar Face

Joined: Tue Feb 28, 2012 1:16 pm
Posts: 11
Location: Russia
Hi!

I have the following situation: window->vbox->scroll_win->gtktreeview.

When the window shows up treeview has no rows and i see that it has a room for two rows before scrolled window comes in.
But i want to have the room for 10 rows before scrolled window comes into play. And it would be great if user could shrink the top window after i set it for 10*row_heigth+header_height+9*vertical-separator

I can't use gtk_widget_set_size_request(window) because it doesn't allow me to shrink the top window.
I tried to play with requisition's height in "size-request" callback of gtktreeview, but if i use scrolled window my requisiotions are not considered (WHY this happens?!)
And if i deny using scrolled window my requisiotions are taken into account but i cannot shrink the top window.

How can i beat this situation?

Thanx.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group