[gnome-latex: 198/205] Show version information: only latexila
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex: 198/205] Show version information: only latexila
- Date: Fri, 14 Dec 2018 11:03:32 +0000 (UTC)
commit 0df382a7c0d6faec84bff6bce3d485cb20cff37d
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date: Wed Apr 28 12:44:33 2010 +0200
Show version information: only latexila
Although it is possible to show the libraries's version, it's useless.
CMakeLists.txt | 1 -
src/config.h.cmake | 2 --
src/main.c | 23 +----------------------
3 files changed, 1 insertion(+), 25 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 37f918a..4a8b0fa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,7 +33,6 @@ SET(CMAKE_C_FLAGS "-Wall -std=c99 -DGTK_DISABLE_DEPRECATED=1")
FIND_PACKAGE(PkgConfig REQUIRED)
PKG_CHECK_MODULES(GTK2 REQUIRED gtk+-2.0>=2.16 gtksourceview-2.0>=2.4)
-SET(GTKSOURCEVIEW_VERSION ${GTK2_gtksourceview-2.0_VERSION})
# commands
diff --git a/src/config.h.cmake b/src/config.h.cmake
index 0ee971f..729994d 100644
--- a/src/config.h.cmake
+++ b/src/config.h.cmake
@@ -36,6 +36,4 @@
#define DATA_DIR "${DATA_DIR}"
-#define GTKSOURCEVIEW_VERSION "@GTKSOURCEVIEW_VERSION@"
-
#endif /* CONFIG_H */
diff --git a/src/main.c b/src/main.c
index 21ab7e5..b760c18 100644
--- a/src/main.c
+++ b/src/main.c
@@ -49,27 +49,6 @@ option_version (const gchar *option_name, const gchar *value, gpointer data,
GError **error)
{
print_info ("%s %s", PROGRAM_NAME, PROGRAM_VERSION);
- print_info ("\tGTK+ %d.%d.%d", GTK_MAJOR_VERSION, GTK_MINOR_VERSION,
- GTK_MICRO_VERSION);
- print_info ("\tGLib %d.%d.%d", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION,
- GLIB_MICRO_VERSION);
- print_info ("\tGtkSourceView %s", GTKSOURCEVIEW_VERSION);
-
- /*
- // more information
- print_info ("\t%s GTK+ %s %d.%d.%d (%s %d.%d.%d)",
- _("using"), _("version"),
- gtk_major_version, gtk_minor_version, gtk_micro_version,
- _("compiled against version"),
- GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
-
- print_info ("\t%s GLib %s %d.%d.%d (%s %d.%d.%d)",
- _("using"), _("version"),
- glib_major_version, glib_minor_version, glib_micro_version,
- _("compiled against version"),
- GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
- */
-
exit (EXIT_SUCCESS);
return TRUE;
}
@@ -365,7 +344,7 @@ main (int argc, char *argv[])
GOptionEntry options[] = {
{ "version", 'v', G_OPTION_FLAG_IN_MAIN | G_OPTION_FLAG_NO_ARG,
G_OPTION_ARG_CALLBACK, (gpointer) option_version,
- N_("Display version informations"), NULL },
+ N_("Show version information and exit"), NULL },
{ "new-document", 'n', G_OPTION_FLAG_IN_MAIN | G_OPTION_FLAG_NO_ARG,
G_OPTION_ARG_NONE, &option_new_document,
N_("Create new document"), NULL },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]