GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Jul 23, 2014 1:48 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Get GtkTreeView widget height
PostPosted: Tue Apr 15, 2014 6:01 am 
Offline

Joined: Tue Apr 15, 2014 5:30 am
Posts: 1
Hi!
We create a tree view and add items to the tree using gtk_list_store_append.

After adding all the iems, we are trying to get the size of the gtkTreeView using gtk_widget_get_preferred_size. but this is returning height as 0 in GTK 3.8.4. This is working in 3.4.

I want to know if there is a change in the gtk_widget_get_preferred_size? and whether this is a bug

Thanx.


Top
 Profile  
 
 Post subject: Re: Get GtkTreeView widget height
PostPosted: Sat Apr 19, 2014 4:04 am 
Offline
GTK+ Guru

Joined: Sun Apr 06, 2008 6:43 pm
Posts: 286
Location: Fortress of solitude
Try with gtk_widget_get_allocation

_________________
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group