[gnome-builder] Fix incorrect ABI version number in error message
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] Fix incorrect ABI version number in error message
- Date: Mon, 4 Oct 2021 18:18:55 +0000 (UTC)
commit acb558ded39a154f357d43113e313015018b4e9f
Author: jebw <jeb jdwilkins co uk>
Date: Sun Oct 3 18:35:45 2021 +0100
Fix incorrect ABI version number in error message
If the plugin's ABI version number does not match
the expected ABI version number, the reported ABI version number includes the IDE_MINOR_VERSION.
Since Builder v41 the 'expected' minor version number should be 0 and not the IDE_MINOR_VERSION number.
src/libide/gui/ide-application-plugins.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-application-plugins.c b/src/libide/gui/ide-application-plugins.c
index aea398976..d62eae3c4 100644
--- a/src/libide/gui/ide-application-plugins.c
+++ b/src/libide/gui/ide-application-plugins.c
@@ -154,7 +154,7 @@ ide_application_can_load_plugin (IdeApplication *self,
if (g_strcmp0 (PACKAGE_ABI_S, abi) != 0)
{
g_critical ("Refusing to load plugin %s, expected ABI %d.%d and got %s",
- module_name, IDE_MAJOR_VERSION, IDE_MINOR_VERSION, abi);
+ module_name, IDE_MAJOR_VERSION, 0, abi);
return FALSE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]