]> Dogcows Code - chaz/openbox/blobdiff - obrender/render.h
This patch implements support for icons in user-defined menus into Openbox
[chaz/openbox] / obrender / render.h
index 7bea1b54bc75b7b639383676e2463a843edead0a..7aa9d698249bd841a066e782fa895e795b44a2cd 100644 (file)
@@ -232,6 +232,8 @@ struct _RrImagePic {
     gint sum;
 };
 
+typedef void (*RrImageDestroyFunc)(RrImage *image);
+
 /*! An RrImage is a sort of meta-image.  It can contain multiple versions of
   an image at different sizes, which may or may not be completely different
   pictures */
@@ -250,6 +252,10 @@ struct _RrImage {
       RrImage. */
     RrImagePic **resized;
     gint n_resized;
+    /* This function (if not NULL) will be called just before destroying
+      RrImage. */
+    RrImageDestroyFunc destroy_func;
 };
 
 /* these are the same on all endian machines because it seems to be dependant
This page took 0.023 seconds and 4 git commands to generate.