Re: making skinnable apps with gtk+
- From: huzheng <forlinux 263 net>
- To: Simon Hookway <lord_seoman hotmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: making skinnable apps with gtk+
- Date: 11 Mar 2002 13:34:24 +0800
use gdk-pixbuf to load pixmap.
tmp_pixbuf = gdk_pixbuf_new_from_file("skins/rw/about.png");
p1 = gdk_pixmap_new(window->window,width,height,-1);
gdk_pixbuf_render_to_drawable(tmp_pixbuf, p1,
window->style->fg_gc[GTK_STATE_NORMAL], x,y, 0, 0, width,height,
GDK_RGB_DITHER_NORMAL, 0, 0);
gdk_pixbuf_unref(tmp_pixbuf);
int SetBackPixmap(GtkWidget *widget,GdkPixmap *pixmap)
{
gdk_window_set_back_pixmap(widget->window, pixmap, FALSE);
gdk_window_clear (widget->window);
return 0;
}
i just programming a program,and it have skin
cosoft.org.cn/projects/reciteword
å 2002-03-11 ä ç 09:05ï Simon Hookway åéï
Hi,
i've made several apps using gtk+ and would now like to try my hand at
making a skinnable app.
Can someone point me in the right direction? is this possible with gtk
or ImLib and where should i start?
thanks all.
Simon
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]