summaryrefslogtreecommitdiff
path: root/gtk/gtkrc.h
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1998-05-21 19:24:01 +0000
committerElliot Lee <sopwith@src.gnome.org>1998-05-21 19:24:01 +0000
commitcefd52f52fcc45ce74f2c6baf3fc3ab6021d2609 (patch)
treeac601b335a83b0449be41e7c8915a449192b4bf4 /gtk/gtkrc.h
parentaed9cf77faa06d32b2d124df5a470e5b262d4e0a (diff)
downloadgdk-pixbuf-cefd52f52fcc45ce74f2c6baf3fc3ab6021d2609.tar.gz
Allow user to set a custom image loading routine for loading bg_pixmap's
Allow user to set a custom image loading routine for loading bg_pixmap's specified in the gtkrc's.
Diffstat (limited to 'gtk/gtkrc.h')
-rw-r--r--gtk/gtkrc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkrc.h b/gtk/gtkrc.h
index d1a7e1cdf..28ce60712 100644
--- a/gtk/gtkrc.h
+++ b/gtk/gtkrc.h
@@ -39,6 +39,15 @@ void gtk_rc_add_widget_name_style (GtkStyle *style,
void gtk_rc_add_widget_class_style (GtkStyle *style,
const gchar *pattern);
+/* Tell gtkrc to use a custom routine to load images specified in rc files instead of
+ the default xpm-only loader */
+typedef GdkPixmap * (*GtkImageLoader) (GdkWindow *window,
+ GdkColormap *colormap,
+ GdkBitmap **mask,
+ GdkColor *transparent_color,
+ const gchar *filename);
+void gtk_rc_set_loader(GtkImageLoader loader);
+
#ifdef __cplusplus
}