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 Aug 30, 2016 1:09 pm

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 

Joined: Thu Jun 14, 2007 8:05 am
Posts: 2
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?



 Post subject:
PostPosted: Fri Jun 15, 2007 9:02 pm 
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!

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