gnucash maint: Set the program name for --help-gtk.
John Ralls
jralls at code.gnucash.org
Sat Sep 26 15:23:56 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/b698e889 (commit)
from https://github.com/Gnucash/gnucash/commit/6ecbb814 (commit)
commit b698e889add7bf0e1dd91e42e60f7b67bd2b5723
Author: John Ralls <jralls at ceridwen.us>
Date: Sat Sep 26 12:23:07 2020 -0700
Set the program name for --help-gtk.
diff --git a/gnucash/gnucash.cpp b/gnucash/gnucash.cpp
index 4bcf004d7..fe8d667af 100644
--- a/gnucash/gnucash.cpp
+++ b/gnucash/gnucash.cpp
@@ -319,6 +319,7 @@ Gnucash::Gnucash::configure_program_options (void)
// for gtk's options. The options themselves are already parsed out by
// gtk_init_check by the time this function is called though. So it really only
// serves to be able to display a help message.
+ g_set_prgname ("gnucash");
auto context = g_option_context_new (m_tagline.c_str());
auto gtk_options = gtk_get_option_group(FALSE);
g_option_context_add_group (context, gtk_options);
Summary of changes:
gnucash/gnucash.cpp | 1 +
1 file changed, 1 insertion(+)
More information about the gnucash-changes
mailing list