GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Customize buttons in gtk

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
prashant



Joined: 14 Jun 2007
Posts: 2

PostPosted: Thu Jun 14, 2007 8:09 am    Post subject: How to Customize buttons in gtk Reply with quote

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
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 386
Location: Fairfax, Virginia

PostPosted: Fri Jun 15, 2007 9:02 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP