summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2004-01-15 15:34:50 +0000
committerAlexander Larsson <alexl@src.gnome.org>2004-01-15 15:34:50 +0000
commit4eadb477ef744a372e95d51f1e21f64eb079d2d2 (patch)
tree99dc12f09047c9e7292b6854fddeccf6f086d3cc /src
parent44b4de05abe0f40fe10f68363fa135441ae86c3a (diff)
downloadnautilus-4eadb477ef744a372e95d51f1e21f64eb079d2d2.tar.gz
Open toplevel help with F1 on desktop. Patch from
2004-01-15 Alexander Larsson <alexl@redhat.com> * src/nautilus-window-menus.c (help_menu_nautilus_manual_callback): Open toplevel help with F1 on desktop. Patch from balamurali.viswanathan@wipro.com (bug #126882)
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-window-menus.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/nautilus-window-menus.c b/src/nautilus-window-menus.c
index 56956690d..bba6d4680 100644
--- a/src/nautilus-window-menus.c
+++ b/src/nautilus-window-menus.c
@@ -37,6 +37,7 @@
#include "nautilus-switchable-navigation-bar.h"
#include "nautilus-window-manage-views.h"
#include "nautilus-window-private.h"
+#include "nautilus-desktop-window.h"
#include <bonobo/bonobo-ui-util.h>
#include <eel/eel-debug.h>
#include <eel/eel-glib-extensions.h>
@@ -49,6 +50,7 @@
#include <libxml/parser.h>
#include <gtk/gtkmain.h>
#include <libegg/egg-screen-help.h>
+#include <libegg/egg-screen-exec.h>
#include <libgnome/gnome-help.h>
#include <libgnome/gnome-i18n.h>
#include <libgnome/gnome-util.h>
@@ -628,9 +630,15 @@ help_menu_nautilus_manual_callback (BonoboUIComponent *component,
error = NULL;
window = NAUTILUS_WINDOW (user_data);
- egg_help_display_desktop_on_screen (
- NULL, "user-guide", "wgosnautilus.xml", "gosnautilus-21",
- gtk_window_get_screen (GTK_WINDOW (window)), &error);
+ if (NAUTILUS_IS_DESKTOP_WINDOW (window)) {
+ egg_screen_execute_command_line_async (
+ gtk_window_get_screen (GTK_WINDOW (window)),
+ "gnome-help", &error);
+ } else {
+ egg_help_display_desktop_on_screen (
+ NULL, "user-guide", "wgosnautilus.xml", "gosnautilus-21",
+ gtk_window_get_screen (GTK_WINDOW (window)), &error);
+ }
if (error) {
dialog = gtk_message_dialog_new (GTK_WINDOW (window),