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 30, 2014 7:02 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Button Width
PostPosted: Thu Jan 10, 2008 9:51 pm 
Offline
Familiar Face

Joined: Tue Jan 08, 2008 7:39 pm
Posts: 9
How would one go about setting a specific width for a button?

What is happening is the label in the button will be changing size from time to time, so I want the button size to remain the same.

I've found a way to do it in php:

Code:
button->set_size_request(80, 32);


but that will not work with c.

Thanks

Brian


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 11, 2008 2:12 am 
Offline

Joined: Fri Jan 11, 2008 12:52 am
Posts: 3
gtk_widget_set_size_request(GTK_WIDGET(button), 80, 32);

http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-set-size-request

-kyle


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 15, 2008 3:44 pm 
Offline
Familiar Face

Joined: Tue Jan 08, 2008 7:39 pm
Posts: 9
ah thanks a bunch I was still looking for that


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 4 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