Kaydet (Commit) 76a6ad8a authored tarafından Nick Treleaven's avatar Nick Treleaven

Show GIO/built-in regex support in startup debug message as well as

for --version.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5378 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 95a0e1ac
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
Make use_safe_file_saving hidden pref apply even when GIO is Make use_safe_file_saving hidden pref apply even when GIO is
available, because g_file_replace_contents() doesn't handle disk available, because g_file_replace_contents() doesn't handle disk
space exhaustion. space exhaustion.
* src/main.c:
Show GIO/built-in regex support in startup debug message as well as
for --version.
2010-11-04 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2010-11-04 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
...@@ -95,6 +95,15 @@ GeanyStatus main_status; ...@@ -95,6 +95,15 @@ GeanyStatus main_status;
CommandLineOptions cl_options; /* fields initialised in parse_command_line_options */ CommandLineOptions cl_options; /* fields initialised in parse_command_line_options */
static const gchar geany_lib_versions[] = "GTK %u.%u.%u, GLib %u.%u.%u"
#ifdef HAVE_GIO
", GIO"
#endif
#ifdef USE_INCLUDED_REGEX
", built-in regex"
#endif
;
static gboolean want_plugins; static gboolean want_plugins;
/* command-line options */ /* command-line options */
...@@ -513,21 +522,13 @@ static void parse_command_line_options(gint *argc, gchar ***argv) ...@@ -513,21 +522,13 @@ static void parse_command_line_options(gint *argc, gchar ***argv)
if (show_version) if (show_version)
{ {
const gchar build_opts[] = "" printf(PACKAGE " %s (", main_get_version_string());
#ifdef HAVE_GIO /* note for translators: library versions are printed after this */
", GIO" printf(_("built on %s with "), __DATE__);
#endif printf(geany_lib_versions,
#ifdef USE_INCLUDED_REGEX GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION,
", built-in regex" GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
#endif printf(")\n");
;
printf(PACKAGE " %s ", main_get_version_string());
printf(_("(built on %s with GTK %d.%d.%d, GLib %d.%d.%d%s)"),
__DATE__, GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION,
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION,
build_opts);
printf("\n");
exit(0); exit(0);
} }
...@@ -994,11 +995,12 @@ gint main(gint argc, gchar **argv) ...@@ -994,11 +995,12 @@ gint main(gint argc, gchar **argv)
#endif #endif
locale = get_locale(); locale = get_locale();
geany_debug("Geany %s, GTK+ %u.%u.%u, GLib %u.%u.%u (%s)", geany_debug("Geany %s, %s",
main_get_version_string(), main_get_version_string(),
gtk_major_version, gtk_minor_version, gtk_micro_version,
glib_major_version, glib_minor_version, glib_micro_version,
locale); locale);
geany_debug(geany_lib_versions,
gtk_major_version, gtk_minor_version, gtk_micro_version,
glib_major_version, glib_minor_version, glib_micro_version);
geany_debug("System data dir: %s", app->datadir); geany_debug("System data dir: %s", app->datadir);
geany_debug("User config dir: %s", app->configdir); geany_debug("User config dir: %s", app->configdir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment