diff options
author | Havoc Pennington <hp@pobox.com> | 2002-01-07 03:26:09 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-01-07 03:26:09 +0000 |
commit | f36ba88085160867791f73704fb023a165d29752 (patch) | |
tree | 4f4f5889c4430f7330c08c4c37858aaf0d8e27a9 /src/gradient.h | |
parent | ac85e1e225a4f12e7069ca60562a92cef3d37dc6 (diff) | |
download | metacity-f36ba88085160867791f73704fb023a165d29752.tar.gz |
put in attempted fix for the GTK 1.2 plug/socket screwup, now that my
2002-01-06 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_notify_focus): put in attempted fix
for the GTK 1.2 plug/socket screwup, now that my fixed debug spew
reveals what's actually happening. ;-)
* src/gradient.c (meta_gradient_description_new): object
to store gradient descriptions
* src/window.c (meta_window_notify_focus): fix the debug spew
that was confusing me
* src/wm-tester/focus-window.c: add little program to focus
a window ID
Diffstat (limited to 'src/gradient.h')
-rw-r--r-- | src/gradient.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gradient.h b/src/gradient.h index 079150ca..4b14475b 100644 --- a/src/gradient.h +++ b/src/gradient.h @@ -32,6 +32,26 @@ typedef enum META_GRADIENT_DIAGONAL } MetaGradientType; +typedef struct _MetaGradientDescription MetaGradientDescription; + +/* this doesn't support interwoven at the moment, since + * I don't know what interwoven is good for + */ +struct _MetaGradientDescription +{ + MetaGradientType type; + GdkColor *colors; + int n_colors; +}; + +MetaGradientDescription* meta_gradient_description_new (MetaGradientType type, + const GdkColor *colors, + int n_colors); +void meta_gradient_description_free (MetaGradientDescription *desc); +GdkPixbuf* meta_gradient_description_render (const MetaGradientDescription *desc, + int width, + int height); + GdkPixbuf* meta_gradient_create_simple (int width, int height, |