summaryrefslogtreecommitdiff
path: root/plugins/shellexecui
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2013-08-11 16:24:37 +0200
committerGravatar waker <wakeroid@gmail.com>2013-08-11 16:24:37 +0200
commit748ca83990821a667093fcef30b9c7d1b28589b9 (patch)
treead971f0b128a6fffabc8ed5e98152ec704c5307d /plugins/shellexecui
parentb5c822c7afe8433cc5e0b14bfc1de21236849680 (diff)
gtkui major version bump and related fixes
Diffstat (limited to 'plugins/shellexecui')
-rw-r--r--plugins/shellexecui/shellexecui.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/shellexecui/shellexecui.c b/plugins/shellexecui/shellexecui.c
index 15440523..a473f67b 100644
--- a/plugins/shellexecui/shellexecui.c
+++ b/plugins/shellexecui/shellexecui.c
@@ -375,17 +375,19 @@ shxui_getactions(DB_playItem_t *it) {
}
int shxui_connect() {
-#if GTK_CHECK_VERSION(3,0,0)
- gtkui_plugin = (ddb_gtkui_t *)deadbeef->plug_get_for_id ("gtkui3");
-#else
- gtkui_plugin = (ddb_gtkui_t *)deadbeef->plug_get_for_id ("gtkui");
-#endif
+ gtkui_plugin = (ddb_gtkui_t *)deadbeef->plug_get_for_id (GTKUI_PLUGIN_ID);
+ if (!gtkui_plugin) {
+ fprintf (stderr, "shellexecui: can't find gtkui plugin\n");
+ return -1;
+ }
shellexec_plugin = (Shx_plugin_t *)deadbeef->plug_get_for_id ("shellexec");
- if(!gtkui_plugin || !shellexec_plugin) {
+ if (!shellexec_plugin) {
+ fprintf (stderr, "shellexecui: can't find shellexec plugin\n");
return -1;
}
- if(shellexec_plugin->misc.plugin.version_major == 1 &&
+ if(shellexec_plugin->misc.plugin.version_major != 1 ||
shellexec_plugin->misc.plugin.version_minor < 1) {
+ fprintf (stderr, "shellexecui: requires shellexec version 1.1 or higher\n");
return -1;
}
return 0;