diff options
author | 2013-08-11 16:24:37 +0200 | |
---|---|---|
committer | 2013-08-11 16:24:37 +0200 | |
commit | 748ca83990821a667093fcef30b9c7d1b28589b9 (patch) | |
tree | ad971f0b128a6fffabc8ed5e98152ec704c5307d /plugins/gtkui/gtkui_api.h | |
parent | b5c822c7afe8433cc5e0b14bfc1de21236849680 (diff) |
gtkui major version bump and related fixes
Diffstat (limited to 'plugins/gtkui/gtkui_api.h')
-rw-r--r-- | plugins/gtkui/gtkui_api.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/gtkui/gtkui_api.h b/plugins/gtkui/gtkui_api.h index 125c2ef7..a1e88afd 100644 --- a/plugins/gtkui/gtkui_api.h +++ b/plugins/gtkui/gtkui_api.h @@ -25,7 +25,13 @@ #ifndef __GTKUI_API_H #define __GTKUI_API_H -#define GTKUI_API_VERSION 1 // for compile-time checking +#define GTKUI_API_VERSION 0 + +#if GTK_CHECK_VERSION(3,0,0) +#define GTKUI_PLUGIN_ID "gtkui3_1" +#else +#define GTKUI_PLUGIN_ID "gtkui_1" +#endif typedef struct ddb_gtkui_widget_s { const char *type; @@ -95,7 +101,6 @@ typedef struct ddb_gtkui_widget_s { typedef struct { DB_gui_t gui; - int api_version; // returns main window ptr GtkWidget * (*get_mainwin) (void); |