GTK+ Forums

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

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Gtk button Size
PostPosted: Wed Jan 18, 2012 2:05 am 
Offline

Joined: Wed Jan 18, 2012 2:04 am
Posts: 2
Hi

How can i specify the button size ?


Top
 Profile  
 
 Post subject: Re: Gtk button Size
PostPosted: Wed Jan 18, 2012 5:01 am 
Offline
Familiar Face

Joined: Mon Jan 16, 2012 9:26 pm
Posts: 5
This may be useful: http://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-size-request.

void gtk_widget_set_size_request(GtkWidget *widget, gint width, gint height);

Still in some cases button size depends on layout where it's placed.

P.S.: http://developer.gnome.org/gtk3/stable/ is a good place to look for the answers.


Top
 Profile  
 
 Post subject: Re: Gtk button Size
PostPosted: Wed Jan 18, 2012 1:21 pm 
Offline
Familiar Face

Joined: Mon Jan 16, 2012 5:10 pm
Posts: 11
Google translator.

friend, have to be careful with these methods, because as I mentioned in the topic BIG PROBLEMS GTK +3, in special cases the widget does not resizes as expected.
For example, if you create a window that should have a maximum of 24 pixels high and add a button with an image within the window increased more than the desired height in gtk3 apparently because the borders of the button does not decrease.
Another example is the wnck.pager and wnck.tasklist.


Top
 Profile  
 
 Post subject: Re: Gtk button Size
PostPosted: Thu Jan 19, 2012 12:21 pm 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
You should be ware these methods regardless. Never mind gtk3 issues, it is the case with GUI's across the board. Gone are the days when the software designer was high and mighty. Many poor applications and webpages exist because the designer was naive of the fact that people with different screen sizes may want to use the program too (I hated when I downloaded an app on my netbook only to discover that the ok buttons for the menus were located off the screen and there was no ability to resize or put it in fullscreen). Today programming has a user focus and is much better off for it.
Don't use these methods unless you're willing to program in a whole size management system for the window.


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

All times are UTC


Who is online

Users browsing this forum: Google Adsense [Bot] and 5 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