diff options
author | Elliot Lee <sopwith@src.gnome.org> | 1998-05-21 19:24:01 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1998-05-21 19:24:01 +0000 |
commit | cefd52f52fcc45ce74f2c6baf3fc3ab6021d2609 (patch) | |
tree | ac601b335a83b0449be41e7c8915a449192b4bf4 /gtk/gtkrc.h | |
parent | aed9cf77faa06d32b2d124df5a470e5b262d4e0a (diff) | |
download | gtk+-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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkrc.h b/gtk/gtkrc.h index d1a7e1cdfc..28ce607124 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 } |