diff options
Diffstat (limited to 'src/ui/gradient.h')
| -rw-r--r-- | src/ui/gradient.h | 20 | 
1 files changed, 20 insertions, 0 deletions
| diff --git a/src/ui/gradient.h b/src/ui/gradient.h index b65b3878..7cbe8977 100644 --- a/src/ui/gradient.h +++ b/src/ui/gradient.h @@ -26,6 +26,7 @@  #include <gdk-pixbuf/gdk-pixbuf.h>  #include <gdk/gdk.h> +#include <gtk/gtk.h>  typedef enum  { @@ -35,6 +36,24 @@ typedef enum    META_GRADIENT_LAST  } MetaGradientType; +#if GTK_CHECK_VERSION (3, 0 ,0) +GdkPixbuf* meta_gradient_create_simple     (int               width, +                                            int               height, +                                            const GdkRGBA    *from, +                                            const GdkRGBA    *to, +                                            MetaGradientType  style); +GdkPixbuf* meta_gradient_create_multi      (int               width, +                                            int               height, +                                            const GdkRGBA    *colors, +                                            int               n_colors, +                                            MetaGradientType  style); +GdkPixbuf* meta_gradient_create_interwoven (int               width, +                                            int               height, +                                            const GdkRGBA     colors1[2], +                                            int               thickness1, +                                            const GdkRGBA     colors2[2], +                                            int               thickness2); +#else  GdkPixbuf* meta_gradient_create_simple     (int               width,                                              int               height,                                              const GdkColor   *from, @@ -51,6 +70,7 @@ GdkPixbuf* meta_gradient_create_interwoven (int               width,                                              int               thickness1,                                              const GdkColor    colors2[2],                                              int               thickness2); +#endif  /* Generate an alpha gradient and multiply it with the existing alpha | 
