 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
prashant
Joined: 14 Jun 2007 Posts: 2
|
Posted: Thu Jun 14, 2007 8:09 am Post subject: How to Customize buttons in gtk |
|
|
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: 376 Location: State College, Pennsylvania
|
Posted: Fri Jun 15, 2007 9:02 pm Post subject: |
|
|
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 |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|