aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-01-02 02:07:02 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-01-02 02:07:02 +0800
commit13a0edc3d27cce65a0f720e98516f7ab902ad0fc (patch)
tree1e2a41f29e5321a3f370a76dbbb803718c1fc6d3 /e-util/e-util.c
parent9d915124c28eb0772b4e1086d6988e7d56d9a04c (diff)
downloadgsoc2013-evolution-13a0edc3d27cce65a0f720e98516f7ab902ad0fc.tar.gz
gsoc2013-evolution-13a0edc3d27cce65a0f720e98516f7ab902ad0fc.tar.zst
gsoc2013-evolution-13a0edc3d27cce65a0f720e98516f7ab902ad0fc.zip
Implement GNOME Goal: RemoveGnomeOpenGnomeHelp
svn path=/branches/kill-bonobo/; revision=36955
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r--e-util/e-util.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 3fce52f9bd..148d89a414 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -38,7 +38,6 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
-#include <libgnome/gnome-help.h>
#include <libgnome/gnome-init.h>
#ifdef G_OS_WIN32
@@ -106,11 +105,23 @@ void
e_display_help (GtkWindow *parent,
const gchar *link_id)
{
+ GString *uri;
GtkWidget *dialog;
+ GdkScreen *screen = NULL;
GError *error = NULL;
+ guint32 timestamp;
- if (gnome_help_display ("evolution.xml", link_id, &error))
- return;
+ uri = g_string_new ("ghelp:" PACKAGE);
+ timestamp = gtk_get_current_event_time ();
+
+ if (parent != NULL)
+ screen = gtk_widget_get_screen (GTK_WIDGET (parent));
+
+ if (link_id != NULL)
+ g_string_append_printf (uri, "?%s", link_id);
+
+ if (gtk_show_uri (screen, uri->str, timestamp, &error))
+ goto exit;
dialog = gtk_message_dialog_new_with_markup (
parent, GTK_DIALOG_DESTROY_WITH_PARENT,
@@ -125,6 +136,9 @@ e_display_help (GtkWindow *parent,
gtk_widget_destroy (dialog);
g_error_free (error);
+
+exit:
+ g_string_free (uri, TRUE);
}
/**