diff options
author | Laszlo Boros <[email protected]> | 2013-10-26 14:27:58 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-26 14:27:58 +0200 |
commit | 35d540dd3c9269ec39bf3bc10a98b9714963291b (patch) | |
tree | ae76b286839a6d3a6ebe309bdb7884bd35a3698d /src/ui/themewidget.h | |
parent | 46ba8ca5fc9665c1a4758e56fda6761ac993c62e (diff) | |
download | marco-35d540dd3c9269ec39bf3bc10a98b9714963291b.tar.bz2 marco-35d540dd3c9269ec39bf3bc10a98b9714963291b.tar.xz |
Starting to add GTK3 support
Diffstat (limited to 'src/ui/themewidget.h')
-rw-r--r-- | src/ui/themewidget.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/ui/themewidget.h b/src/ui/themewidget.h index 79f10e65..940b44fc 100644 --- a/src/ui/themewidget.h +++ b/src/ui/themewidget.h @@ -42,19 +42,30 @@ typedef void (* MetaAreaSizeFunc) (MetaArea *area, int *width, int *height, void *user_data); - +#if GTK_CHECK_VERSION(3, 0, 0) +typedef void (* MetaAreaDrawFunc) (MetaArea *area, + cairo_t *cr, + void *user_data); +#else typedef void (* MetaAreaExposeFunc) (MetaArea *area, GdkEventExpose *event, int x_offset, int y_offset, void *user_data); +#endif + +#define parent_class meta_area_parent_class struct _MetaArea { GtkMisc misc; MetaAreaSizeFunc size_func; + #if GTK_CHECK_VERSION(3, 0, 0) + MetaAreaDrawFunc draw_func; + #else MetaAreaExposeFunc expose_func; + #endif void *user_data; GDestroyNotify dnotify; }; @@ -70,7 +81,11 @@ GtkWidget* meta_area_new (void); void meta_area_setup (MetaArea *area, MetaAreaSizeFunc size_func, + #if GTK_CHECK_VERSION(3, 0, 0) + MetaAreaDrawFunc draw_func, + #else MetaAreaExposeFunc expose_func, + #endif void *user_data, GDestroyNotify dnotify); |