GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Oct 25, 2014 5:36 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: gtkcombo box
PostPosted: Thu Mar 14, 2013 10:20 am 
Offline
Familiar Face

Joined: Thu Nov 01, 2012 5:48 am
Posts: 30
Hi ,

Could anyone tell how to fix the size of gtkcombo box ?

Regards
hkishn


Top
 Profile  
 
 Post subject: Re: gtkcombo box
PostPosted: Sun Mar 17, 2013 2:59 pm 
Offline
Familiar Face

Joined: Fri Sep 23, 2011 12:04 pm
Posts: 31
I do have the same problem, upto now I solved it by creating fixed other widgets so the borders for the combo box are fixed (with expand on).
I would like to ask you if you have got a better answer?

L. Dries


Top
 Profile  
 
 Post subject: Re: gtkcombo box
PostPosted: Sun Mar 24, 2013 11:23 am 
Offline
Familiar Face

Joined: Wed Jan 30, 2013 8:28 pm
Posts: 20
it is possible.

1) gtk_widget_set_size_request() for the minimum size of the widget and use
2) gtk_widget_set_hexpand() to "FALSE" to tell to gtk to not give any other space for this widget in the "HORIZONTAL" direction
3) and gtk_widget_set_vexpand() to "FALSE" to tell to gtk to not give any other space for this widget in the "VERTICAL" direction

with this all things will be good

look at: https://developer.gnome.org/gtk3/stable ... idget-draw

Best regards


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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