summaryrefslogtreecommitdiff
path: root/src/nautilus-location-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-location-dialog.c')
-rw-r--r--src/nautilus-location-dialog.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nautilus-location-dialog.c b/src/nautilus-location-dialog.c
index 2a7d25497..44a4f78cb 100644
--- a/src/nautilus-location-dialog.c
+++ b/src/nautilus-location-dialog.c
@@ -26,9 +26,11 @@
#include <eel/eel-gtk-macros.h>
#include <eel/eel-vfs-extensions.h>
+#include <eel/eel-stock-dialogs.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkstock.h>
+#include <libgnomeui/gnome-help.h>
#include <libgnomevfs/gnome-vfs-utils.h>
#include <libnautilus-private/nautilus-file-utilities.h>
#include "nautilus-location-entry.h"
@@ -91,6 +93,8 @@ response_callback (NautilusLocationDialog *dialog,
int response_id,
gpointer data)
{
+ GError *error;
+
switch (response_id) {
case RESPONSE_OPEN :
open_current_location (dialog);
@@ -101,6 +105,18 @@ response_callback (NautilusLocationDialog *dialog,
case GTK_RESPONSE_CANCEL :
gtk_widget_destroy (GTK_WIDGET (dialog));
break;
+ case GTK_RESPONSE_HELP :
+ error = NULL;
+ gnome_help_display_desktop_on_screen (NULL, "user-guide", "user-guide.xml",
+ "nautilus-open-location",
+ gtk_window_get_screen (GTK_WINDOW (dialog)),
+ &error);
+ if (error) {
+ eel_show_error_dialog (_("There was an error displaying help."), error->message,
+ GTK_WINDOW (dialog));
+ g_error_free (error);
+ }
+ break;
default :
g_assert_not_reached ();
}
@@ -170,6 +186,9 @@ nautilus_location_dialog_init (NautilusLocationDialog *dialog)
box, TRUE, TRUE, 0);
gtk_dialog_add_button (GTK_DIALOG (dialog),
+ GTK_STOCK_HELP,
+ GTK_RESPONSE_HELP);
+ gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL,
GTK_RESPONSE_CANCEL);
gtk_dialog_add_button (GTK_DIALOG (dialog),