summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-27 21:07:06 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-27 21:07:06 +0100
commit5ce9eda4aefefdb70ae3f716db1379e1ab44c6f3 (patch)
treef4fc0d51cf562e1fb26d7eb529a76d5497a80e8f
parentf28a376ee798288fb8cfc42e8ae723a648f8eb68 (diff)
gtkui: api and doc fixes
-rw-r--r--plugins/gtkui/gtkui.c2
-rw-r--r--plugins/gtkui/gtkui_api.h11
2 files changed, 7 insertions, 6 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c
index cbf201fb..910b4fe7 100644
--- a/plugins/gtkui/gtkui.c
+++ b/plugins/gtkui/gtkui.c
@@ -1662,7 +1662,7 @@ static ddb_gtkui_t plugin = {
.gui.plugin.api_vmajor = 1,
.gui.plugin.api_vminor = 5,
.gui.plugin.version_major = 2,
- .gui.plugin.version_minor = DDB_GTKUI_API_VERSION,
+ .gui.plugin.version_minor = 0,
.gui.plugin.type = DB_PLUGIN_GUI,
.gui.plugin.id = DDB_GTKUI_PLUGIN_ID,
#if GTK_CHECK_VERSION(3,0,0)
diff --git a/plugins/gtkui/gtkui_api.h b/plugins/gtkui/gtkui_api.h
index 789a674a..bb432d79 100644
--- a/plugins/gtkui/gtkui_api.h
+++ b/plugins/gtkui/gtkui_api.h
@@ -25,17 +25,18 @@
#ifndef __GTKUI_API_H
#define __GTKUI_API_H
-// the DDB_GTKUI_API_VERSION was introduced in deadbeef-0.6.0.
+// gtkui.version_major=2 corresponds to deadbeef 0.6
// this is the version which has added design mode.
-// gtkui plugin has been renamed into gtkui_1, to avoid loading broken plugins
-// please DON'T simply patch your plugin to load gtkui_1 instead of gtkui
+// it's guaranteed that the API will remain backwards compatible
+// in minor releases (2.x)
+
+// gtkui plugin id has been changed to gtkui_1, to avoid loading broken plugins.
+// please DON'T simply patch your plugin to load gtkui_1 instead of gtkui.
// for information, about how to port your plugin to the new API correctly,
// and to learn more about design mode programming,
// please visit the following page:
// http://sourceforge.net/apps/mediawiki/deadbeef/index.php?title=Porting_GUI_plugins_to_0.6
-#define DDB_GTKUI_API_VERSION 1
-
#if GTK_CHECK_VERSION(3,0,0)
#define DDB_GTKUI_PLUGIN_ID "gtkui3_1"
#else