diff options
author | Stefano Karapetsas <[email protected]> | 2013-10-26 14:35:17 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-26 14:35:17 +0200 |
commit | 16606e37b0ba6a2c2661433e0219a87df43a539c (patch) | |
tree | e6b8db102273d07b4e8efd318ed1e8c6d77a4024 /libmate-panel-applet/mate-panel-applet.h | |
parent | a6efbbceb5b1122512cd01609eab99fe522d8435 (diff) | |
download | mate-panel-16606e37b0ba6a2c2661433e0219a87df43a539c.tar.bz2 mate-panel-16606e37b0ba6a2c2661433e0219a87df43a539c.tar.xz |
libmate-panel-applet: Add GTK3 support
Diffstat (limited to 'libmate-panel-applet/mate-panel-applet.h')
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.h b/libmate-panel-applet/mate-panel-applet.h index dadc92bc..ed089c22 100644 --- a/libmate-panel-applet/mate-panel-applet.h +++ b/libmate-panel-applet/mate-panel-applet.h @@ -27,6 +27,8 @@ #include <glib.h> #include <gtk/gtk.h> +#include <cairo.h> +#include <cairo-gobject.h> #ifdef __cplusplus extern "C" { @@ -78,7 +80,11 @@ struct _MatePanelAppletClass { void (*change_size) (MatePanelApplet* applet, guint size); +#if GTK_CHECK_VERSION (3, 0, 0) + void (*change_background) (MatePanelApplet *applet, cairo_pattern_t *pattern); +#else void (*change_background) (MatePanelApplet* applet, MatePanelAppletBackgroundType type, GdkColor* color, GdkPixmap* pixmap); +#endif void (*move_focus_out_of_applet) (MatePanelApplet* frame, GtkDirectionType direction); }; @@ -88,8 +94,11 @@ GtkWidget* mate_panel_applet_new(void); MatePanelAppletOrient mate_panel_applet_get_orient(MatePanelApplet* applet); guint mate_panel_applet_get_size(MatePanelApplet* applet); +#if GTK_CHECK_VERSION (3, 0, 0) +MatePanelAppletBackgroundType mate_panel_applet_get_background (MatePanelApplet *applet, /* return values */ GdkColor* color, cairo_pattern_t** pattern); +#else MatePanelAppletBackgroundType mate_panel_applet_get_background(MatePanelApplet* applet, /* return values */ GdkColor* color, GdkPixmap** pixmap); - +#endif void mate_panel_applet_set_background_widget(MatePanelApplet* applet, GtkWidget* widget); gchar* mate_panel_applet_get_preferences_path(MatePanelApplet* applet); |