nautilus r14685 - in trunk: . src src/file-manager
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r14685 - in trunk: . src src/file-manager
- Date: Mon, 6 Oct 2008 09:49:34 +0000 (UTC)
Author: alexl
Date: Mon Oct 6 09:49:34 2008
New Revision: 14685
URL: http://svn.gnome.org/viewvc/nautilus?rev=14685&view=rev
Log:
2008-10-06 Cosimo Cecchi <cosimoc gnome org>
* src/file-manager/fm-directory-view.c:
* src/file-manager/fm-properties-window.c:
* src/nautilus-bookmarks-window.c:
* src/nautilus-connect-server-dialog.c:
* src/nautilus-file-management-properties.c:
* src/nautilus-location-dialog.c:
Use gtk_show_uri instead of gnome_help
Modified:
trunk/ChangeLog
trunk/src/file-manager/fm-directory-view.c
trunk/src/file-manager/fm-properties-window.c
trunk/src/nautilus-bookmarks-window.c
trunk/src/nautilus-connect-server-dialog.c
trunk/src/nautilus-file-management-properties.c
trunk/src/nautilus-location-dialog.c
Modified: trunk/src/file-manager/fm-directory-view.c
==============================================================================
--- trunk/src/file-manager/fm-directory-view.c (original)
+++ trunk/src/file-manager/fm-directory-view.c Mon Oct 6 09:49:34 2008
@@ -38,7 +38,6 @@
#include "fm-properties-window.h"
#include "libnautilus-private/nautilus-open-with-dialog.h"
-#include <libgnome/gnome-url.h>
#include <eel/eel-mount-operation.h>
#include <eel/eel-background.h>
#include <eel/eel-glib-extensions.h>
@@ -54,7 +53,6 @@
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <gio/gio.h>
-#include <libgnomeui/gnome-help.h>
#include <libnautilus-private/nautilus-recent.h>
#include <libnautilus-extension/nautilus-menu-provider.h>
#include <libnautilus-private/nautilus-clipboard.h>
@@ -1127,10 +1125,9 @@
break;
case GTK_RESPONSE_HELP :
error = NULL;
- gnome_help_display_desktop_on_screen (NULL, "user-guide", "user-guide.xml",
- "nautilus-select-pattern",
- gtk_window_get_screen (GTK_WINDOW (dialog)),
- &error);
+ gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (dialog)),
+ "ghelp:user-guide#nautilus-select-pattern",
+ gtk_get_current_event_time (), &error);
if (error) {
eel_show_error_dialog (_("There was an error displaying help."), error->message,
GTK_WINDOW (dialog));
Modified: trunk/src/file-manager/fm-properties-window.c
==============================================================================
--- trunk/src/file-manager/fm-properties-window.c (original)
+++ trunk/src/file-manager/fm-properties-window.c Mon Oct 6 09:49:34 2008
@@ -39,12 +39,9 @@
#include <eel/eel-vfs-extensions.h>
#include <eel/eel-wrap-table.h>
#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h>
#include <glib/gi18n.h>
-#include <libgnome/gnome-macros.h>
-#include <libgnomeui/gnome-dialog.h>
-#include <libgnomeui/gnome-help.h>
#include <libgnomeui/gnome-thumbnail.h>
-#include <libgnomeui/gnome-uidefs.h>
#include <libnautilus-extension/nautilus-property-page-provider.h>
#include <libnautilus-private/nautilus-customization-data.h>
#include <libnautilus-private/nautilus-entry.h>
@@ -5445,9 +5442,10 @@
switch (response) {
case GTK_RESPONSE_HELP:
- gnome_help_display_desktop_on_screen (NULL, "user-guide", "user-guide.xml", "gosnautilus-51",
- gtk_window_get_screen (GTK_WINDOW (dialog)),
- &error);
+ gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (dialog)),
+ "ghelp:user-guide#gosnautilus-51",
+ gtk_get_current_event_time (),
+ &error);
if (error != NULL) {
eel_show_error_dialog (_("There was an error displaying help."), error->message,
GTK_WINDOW (dialog));
Modified: trunk/src/nautilus-bookmarks-window.c
==============================================================================
--- trunk/src/nautilus-bookmarks-window.c (original)
+++ trunk/src/nautilus-bookmarks-window.c Mon Oct 6 09:49:34 2008
@@ -36,8 +36,7 @@
#include <eel/eel-gnome-extensions.h>
#include <libnautilus-private/nautilus-undo-signal-handlers.h>
#include <gtk/gtk.h>
-#include <gnome.h>
-#include <libgnomeui/gnome-help.h>
+#include <gdk/gdkkeysyms.h>
#include <glade/glade.h>
/* Static variables to keep track of window state. If there were
@@ -147,9 +146,9 @@
if (response_id == GTK_RESPONSE_HELP) {
GError *error = NULL;
- gnome_help_display_desktop_on_screen (
- NULL, "user-guide", "user-guide.xml", "gosnautilus-36",
- gtk_window_get_screen (GTK_WINDOW (dialog)), &error);
+ gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (dialog)),
+ "ghelp:user-guide#gosnautilus-36",
+ gtk_get_current_event_time (), &error);
if (error) {
GtkWidget *err_dialog;
Modified: trunk/src/nautilus-connect-server-dialog.c
==============================================================================
--- trunk/src/nautilus-connect-server-dialog.c (original)
+++ trunk/src/nautilus-connect-server-dialog.c Mon Oct 6 09:49:34 2008
@@ -28,7 +28,6 @@
#include <eel/eel-gtk-macros.h>
#include <eel/eel-stock-dialogs.h>
#include <eel/eel-vfs-extensions.h>
-#include <libgnomeui/gnome-help.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
#include <gtk/gtk.h>
@@ -335,10 +334,9 @@
break;
case GTK_RESPONSE_HELP :
error = NULL;
- gnome_help_display_desktop_on_screen (NULL, "user-guide", "user-guide.xml",
- "nautilus-server-connect",
- gtk_window_get_screen (GTK_WINDOW (dialog)),
- &error);
+ gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (dialog)),
+ "ghelp:user-guide#nautilus-server-connect",
+ gtk_get_current_event_time (), &error);
if (error) {
eel_show_error_dialog (_("There was an error displaying help."), error->message,
GTK_WINDOW (dialog));
Modified: trunk/src/nautilus-file-management-properties.c
==============================================================================
--- trunk/src/nautilus-file-management-properties.c (original)
+++ trunk/src/nautilus-file-management-properties.c Mon Oct 6 09:49:34 2008
@@ -31,7 +31,6 @@
#include <gtk/gtk.h>
#include <gio/gio.h>
-#include <libgnome/gnome-help.h>
#include <glib/gi18n.h>
#include <glade/glade.h>
@@ -190,13 +189,17 @@
{
GError *error = NULL;
GtkWidget *dialog;
+ char *help_string;
g_assert (helpfile != NULL);
g_assert (sect_id != NULL);
- gnome_help_display_desktop (NULL,
- "user-guide",
- helpfile, sect_id, &error);
+ help_string = g_strdup_printf ("ghelp:%s#%s", helpfile, sect_id);
+
+ gtk_show_uri (gtk_window_get_screen (parent),
+ help_string, gtk_get_current_event_time (),
+ &error);
+ g_free (help_string);
if (error) {
dialog = gtk_message_dialog_new (GTK_WINDOW (parent),
@@ -241,7 +244,7 @@
case 4:
section = "gosnautilus-60";
}
- preferences_show_help (GTK_WINDOW (parent), "user-guide.xml", section);
+ preferences_show_help (GTK_WINDOW (parent), "user-guide", section);
} else if (response_id == GTK_RESPONSE_CLOSE) {
/* remove gconf monitors */
eel_gconf_monitor_remove ("/apps/nautilus/icon_view");
Modified: trunk/src/nautilus-location-dialog.c
==============================================================================
--- trunk/src/nautilus-location-dialog.c (original)
+++ trunk/src/nautilus-location-dialog.c Mon Oct 6 09:49:34 2008
@@ -27,7 +27,6 @@
#include <eel/eel-gtk-macros.h>
#include <eel/eel-stock-dialogs.h>
#include <gtk/gtk.h>
-#include <libgnomeui/gnome-help.h>
#include <libnautilus-private/nautilus-file-utilities.h>
#include "nautilus-location-entry.h"
#include "nautilus-desktop-window.h"
@@ -102,10 +101,9 @@
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);
+ gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (dialog)),
+ "ghelp:user-guide#nautilus-open-location",
+ gtk_get_current_event_time (), &error);
if (error) {
eel_show_error_dialog (_("There was an error displaying help."), error->message,
GTK_WINDOW (dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]