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 3:52 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to Customize buttons in gtk
PostPosted: Thu Jun 14, 2007 8:09 am 
Offline

Joined: Thu Jun 14, 2007 8:05 am
Posts: 2
Hello,
I am developing an application using Gtk, i want to customize buttons in oval shape or rounded edges. Can anyone tell me broadly how to go about it?

Thanks

Prashant


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 9:02 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
The short answer is that you cannot do this. Rounding edges, and all of that type of thing are handled by the user's theme. You can control some styles with RC files, but it's not going to do everything you want to do.

In order to do this, you are going to have to create your own widget. Another easier option would be to use a GtkImage widget that is contained by a GtkEventBox container.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


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: Google [Bot] and 1 guest


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