diff options
author | Martin Wehner <martin.wehner@gmail.com> | 2006-03-22 02:59:21 +0000 |
---|---|---|
committer | Martin Wehner <mwehner@src.gnome.org> | 2006-03-22 02:59:21 +0000 |
commit | fa1dd162316e52b758553993444d9bb6889a2a87 (patch) | |
tree | 3609e272e902175448ae8fd851069e21411ab2e9 /src/nautilus-location-dialog.c | |
parent | 904c1b95c67ab1f122598e4b5cb25c840d24619f (diff) | |
download | nautilus-fa1dd162316e52b758553993444d9bb6889a2a87.tar.gz |
Add help button to the Select Pattern dialog. (#331443)
2006-03-22 Martin Wehner <martin.wehner@gmail.com>
* src/file-manager/fm-directory-view.c:
(pattern_select_response_cb), (select_pattern):
Add help button to the Select Pattern dialog. (#331443)
* src/nautilus-connect-server-dialog.c: (response_callback),
(nautilus_connect_server_dialog_init):
Add help button to the Connect to Server dialog. (#334330)
* src/nautilus-location-dialog.c: (response_callback),
(nautilus_location_dialog_init):
Add help button to the Open Location dialog (#334293)
Diffstat (limited to 'src/nautilus-location-dialog.c')
-rw-r--r-- | src/nautilus-location-dialog.c | 19 |
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), |