[nautilus-actions] Connect to Yelp



commit 6133f63fcfbe453cbd2f37b84bcd1f6c74c3b0f4
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Aug 2 22:10:02 2010 +0200

    Connect to Yelp

 ChangeLog                         |    3 +++
 src/nact/nact-main-menubar-help.c |   13 ++++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index df2fffa..89ab854 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-08-02 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-main-menubar-help.c (nact_main_menubar_help_on_help):
+	Connect to Yelp.
+
 	* configure.ac: Update comments.
 
 	* src/nact/nact-add-capability-dialog.c (try_for_send_ok):
diff --git a/src/nact/nact-main-menubar-help.c b/src/nact/nact-main-menubar-help.c
index cdfde5e..2ebc658 100644
--- a/src/nact/nact-main-menubar-help.c
+++ b/src/nact/nact-main-menubar-help.c
@@ -48,9 +48,7 @@
 void
 nact_main_menubar_help_on_update_sensitivities( NactMainWindow *window, gpointer user_data, MenubarIndicatorsStruct *mis )
 {
-	/* TODO: help temporarily disabled */
-	nact_main_menubar_enable_item( window, "HelpItem", FALSE );
-
+	nact_main_menubar_enable_item( window, "HelpItem", TRUE );
 	/* about always enabled */
 }
 
@@ -64,6 +62,15 @@ nact_main_menubar_help_on_update_sensitivities( NactMainWindow *window, gpointer
 void
 nact_main_menubar_help_on_help( GtkAction *action, NactMainWindow *window )
 {
+	static const gchar *thisfn = "nact_main_menubar_help_on_help";
+	GError *error;
+
+	error = NULL;
+	gtk_show_uri( NULL, "ghelp:nautilus-actions-config-tool", GDK_CURRENT_TIME, &error );
+	if( error ){
+		g_warning( "%s: %s", thisfn, error->message );
+		g_error_free( error );
+	}
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]