summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2008-11-29 12:45:56 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2008-11-29 12:45:56 +0900
commitf7fac7eb79a77afd2281e5f5595c6489bb9eb438 (patch)
tree5480810e23cb6d9f5cfd85079d7dee6993d73b3b
parent7bfda0ad53474a0b1714e9b6f47f1d12671c5962 (diff)
downloadprompt-f7fac7eb79a77afd2281e5f5595c6489bb9eb438.tar.gz
prompt-f7fac7eb79a77afd2281e5f5595c6489bb9eb438.tar.bz2
* Check text plugin ABI version before loading
-rw-r--r--prompt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/prompt.c b/prompt.c
index 99be5f1..9e32031 100644
--- a/prompt.c
+++ b/prompt.c
@@ -402,6 +402,10 @@ promptInitDisplay (CompPlugin *p,
if (!checkPluginABI ("core", CORE_ABIVERSION))
return FALSE;
+
+ if (!checkPluginABI ("text", TEXT_ABIVERSION))
+ compLogMessage ("prompt", CompLogLevelWarn,
+ "No compatible text plugin found.\nPrompt will now unload");
ad = malloc (sizeof (PromptDisplay));
if (!ad)