[Xfce4-commits] [apps/xfdashboard] 01/01: Improve application help shown when xfdashboard is launched with "--help" in command-line

noreply at xfce.org noreply at xfce.org
Thu Mar 23 09:28:43 CET 2017


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 65b9231b4f83587502537c92c3b6dcefffc74664
Author: Stephan Haller <nomad at froevel.de>
Date:   Thu Mar 23 09:28:12 2017 +0100

    Improve application help shown when xfdashboard is launched with "--help" in command-line
---
 libxfdashboard/application.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libxfdashboard/application.c b/libxfdashboard/application.c
index 267eaf4..734991e 100644
--- a/libxfdashboard/application.c
+++ b/libxfdashboard/application.c
@@ -565,7 +565,7 @@ static gint _xfdashboard_application_handle_command_line_arguments(XfdashboardAp
 										{ "quit", 'q', 0, G_OPTION_ARG_NONE, &optionQuit, N_("Quit running instance"), NULL },
 										{ "restart", 'r', 0, G_OPTION_ARG_NONE, &optionRestart, N_("Restart running instance"), NULL },
 										{ "toggle", 't', 0, G_OPTION_ARG_NONE, &optionToggle, N_("Toggles visibility if running instance was started in daemon mode otherwise it quits running non-daemon instance"), NULL },
-										{ "view", 0, 0, G_OPTION_ARG_STRING, &optionSwitchToView, N_("The view to switch to on startup or resume"), NULL },
+										{ "view", 0, 0, G_OPTION_ARG_STRING, &optionSwitchToView, N_("The ID of view to switch to on startup or resume"), "ID" },
 										{ NULL }
 									};
 
@@ -582,7 +582,9 @@ static gint _xfdashboard_application_handle_command_line_arguments(XfdashboardAp
 	optionSwitchToView=NULL;
 
 	/* Setup command-line options */
-	context=g_option_context_new(N_("- A Gnome Shell like dashboard for Xfce4"));
+	context=g_option_context_new(N_(""));
+	g_option_context_set_summary(context, N_("A Gnome Shell like dashboard for Xfce4 - version " PACKAGE_VERSION));
+	g_option_context_set_translation_domain(context, GETTEXT_PACKAGE);
 	g_option_context_add_group(context, gtk_get_option_group(TRUE));
 	g_option_context_add_group(context, clutter_get_option_group_without_init());
 	g_option_context_add_group(context, xfce_sm_client_get_option_group(inArgc, inArgv));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list