Re: Pixmaps?
| From: | Michael Gibson | Date: | Wed, 14 Mar 2001 21:56:55 +0000 |
| Subject: | Re: Pixmaps? | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-893@lists.php.net to get a copy of this message | ||
"Alan Morey [caint.com]" wrote:
> Has anyone got pixmaps working or have an example of how to use them,
> besides gtk.org?
I have not figured it out but I have a sloppy cheat,
but only through setting the name in the code:
$button->set_name('button1');
or
$window->set_name('program_name');
and then setting stuff in the rc file for the program:
GTK::rc_parse('conf/programrc');
In the rc file:
pixmap_path "."
style "window" {
bg_pixmap[NORMAL] = "icons/marble.xpm"
}
style "button1" {
bg_pixmap[NORMAL] = "icons/button1.xpm"
bg_pixmap[PRELIGHT] = "icons/button1.xpm"
}
widget_class "GtkWinow" style "window"
widget "program_name.*.button1" style "button1"