[gnome-text-editor] app: add enchant version information to --version
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] app: add enchant version information to --version
- Date: Wed, 10 Aug 2022 20:10:06 +0000 (UTC)
commit c2c40015067c9f857c00ca36699ff0d4c54fe340
Author: Christian Hergert <chergert redhat com>
Date: Wed Aug 10 13:07:03 2022 -0700
app: add enchant version information to --version
src/main.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/main.c b/src/main.c
index a1838da..848905f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,9 +21,14 @@
#include "config.h"
#include <glib/gi18n.h>
+
#include <gtk/gtk.h>
#include <gtksourceview/gtksource.h>
+#ifdef HAVE_ENCHANT
+# include <enchant.h>
+#endif
+
#include "build-ident.h"
#include "editor-application-private.h"
@@ -49,12 +54,17 @@ check_early_opts (int *argc,
if (version)
{
g_printerr ("%s %s (%s)\n", PACKAGE_NAME, PACKAGE_VERSION, EDITOR_BUILD_IDENTIFIER);
+ g_printerr ("\n");
g_printerr (" GTK: %d.%d.%d (Compiled against %d.%d.%d)\n",
gtk_get_major_version (), gtk_get_minor_version (), gtk_get_micro_version (),
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
g_printerr (" GtkSourceView: %d.%d.%d (Compiled against %d.%d.%d)\n",
gtk_source_get_major_version (), gtk_source_get_minor_version (),
gtk_source_get_micro_version (),
GTK_SOURCE_MAJOR_VERSION, GTK_SOURCE_MINOR_VERSION, GTK_SOURCE_MICRO_VERSION);
+
+#ifdef HAVE_ENCHANT
+ g_printerr (" Enchant: %s\n", enchant_get_version ());
+#endif
exit (EXIT_SUCCESS);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]