Re: Borderless buttons
- From: Todd Fisher <taf2 lehigh edu>
- To: Lars Clausen <lc statsbiblioteket dk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Borderless buttons
- Date: Thu, 27 May 2004 13:10:48 -0400
Lars Clausen wrote:
On Wed, 2004-05-26 at 16:54, Todd Fisher wrote:
Hi Lars!
I think you might find it easiest to use the pixmap theme engine to
create image buttons. By doing
something like the following:
style "checkradiobutton"
{
engine "pixmap" {
[...]
}
}
widget "*.orange_button*" style "checkradiobutton"
you can make just about any widget look however you like in this way...
Thing to keep in mind is that the widgets you apply this too will not be
themable outside your application.
hope this helps :)
So how would this be integrated in the code and the autoconf/automake
system? Where does the above go, and how do I access it from C? I'm
finding blessed little documentation on themes for programmers.
-Lars
sorry, i left that part out. so that example resource file that uses
the pixmap theme engine would be stored
in a file. Typically, if it's part of a system wide theme then you'd
store it in a file named gtkrc and the user
would then decide, whether or not to apply that particular theme to all
the gtk+ apps. However, you can
manually load one of these files overriding a system defined theme if
you want to specialize parts of your
application. So, you could use the gtk_rc_add_default_file function to
explicitly load a resource file in your case. Take a look at the API
docs for GtkRcStyle and you should see there are a few other ways of
doing this as well.
hope that helps ,
todd
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]