diff options
author | Stefano Karapetsas <[email protected]> | 2013-11-29 14:36:23 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-11-29 14:36:23 +0100 |
commit | 17fc492a17e8f5317d7438c771ac9c95ce1e0a04 (patch) | |
tree | e40ede01db66cccda81ecf1a2c49ad76037ac26c /mate-panel/panel-background.h | |
parent | 3f71479324ce6896c3cd8a480aacaf588ab159a9 (diff) | |
download | mate-panel-17fc492a17e8f5317d7438c771ac9c95ce1e0a04.tar.bz2 mate-panel-17fc492a17e8f5317d7438c771ac9c95ce1e0a04.tar.xz |
Panel background improvements for GTK3
Diffstat (limited to 'mate-panel/panel-background.h')
-rw-r--r-- | mate-panel/panel-background.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mate-panel/panel-background.h b/mate-panel/panel-background.h index b5aeb6eb..fead8648 100644 --- a/mate-panel/panel-background.h +++ b/mate-panel/panel-background.h @@ -69,13 +69,14 @@ struct _PanelBackground { GdkWindow *window; #if GTK_CHECK_VERSION (3, 0, 0) cairo_pattern_t *default_pattern; + GdkRGBA default_color; #else GdkPixmap *pixmap; GdkColormap *colormap; GdkGC *gc; GdkPixmap *default_pixmap; -#endif GdkColor default_color; +#endif guint fit_image : 1; guint stretch_image : 1; @@ -109,9 +110,9 @@ void panel_background_set_type (PanelBackground *background, #if !GTK_CHECK_VERSION (3, 0, 0) void panel_background_set_gdk_color (PanelBackground *background, GdkColor *gdk_color); +#endif void panel_background_set_opacity (PanelBackground *background, guint16 opacity); -#endif void panel_background_set_color (PanelBackground *background, #if GTK_CHECK_VERSION (3, 0, 0) const GdkRGBA *color); @@ -127,10 +128,11 @@ void panel_background_set_stretch (PanelBackground *background, void panel_background_set_rotate (PanelBackground *background, gboolean rotate_image); void panel_background_set_default_style (PanelBackground *background, - GdkColor *color, #if GTK_CHECK_VERSION (3, 0, 0) + GdkRGBA *color, cairo_pattern_t *pattern); #else + GdkColor *color, GdkPixmap *pixmap); #endif void panel_background_realized (PanelBackground *background, |