aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-04-03 04:08:14 +0800
committerChristian Persch <chpe@src.gnome.org>2006-04-03 04:08:14 +0800
commit64d66e03766ff4a529f2ebca534dbbcd756452a2 (patch)
tree176cc62ed39d60ea1755e91c19d3795fd3683ad8 /lib
parent4454c5cf13ac8e73924c1957e25cd742b7143f51 (diff)
downloadgsoc2013-epiphany-64d66e03766ff4a529f2ebca534dbbcd756452a2.tar
gsoc2013-epiphany-64d66e03766ff4a529f2ebca534dbbcd756452a2.tar.gz
gsoc2013-epiphany-64d66e03766ff4a529f2ebca534dbbcd756452a2.tar.bz2
gsoc2013-epiphany-64d66e03766ff4a529f2ebca534dbbcd756452a2.tar.lz
gsoc2013-epiphany-64d66e03766ff4a529f2ebca534dbbcd756452a2.tar.xz
gsoc2013-epiphany-64d66e03766ff4a529f2ebca534dbbcd756452a2.tar.zst
gsoc2013-epiphany-64d66e03766ff4a529f2ebca534dbbcd756452a2.zip
Add ephy_guid_help_with_doc_id for use by e-e.
2006-04-02 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-gui.c: (ephy_gui_help_with_doc_id), (ephy_gui_help): * lib/ephy-gui.h: Add ephy_guid_help_with_doc_id for use by e-e.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-gui.c34
-rw-r--r--lib/ephy-gui.h5
2 files changed, 27 insertions, 12 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index 9729be44d..afbc8b5e7 100644
--- a/lib/ephy-gui.c
+++ b/lib/ephy-gui.c
@@ -391,32 +391,42 @@ ephy_gui_check_location_writable (GtkWidget *parent,
}
void
-ephy_gui_help (GtkWindow *parent,
- const char *file_name,
- const char *link_id)
+ephy_gui_help_with_doc_id (GtkWindow *parent,
+ const char *doc_id,
+ const char *file_name,
+ const char *link_id)
{
- GError *err = NULL;
+ GError *error = NULL;
- gnome_help_display (file_name, link_id, &err);
+ gnome_help_display_with_doc_id (NULL, doc_id, file_name, link_id, &error);
- if (err != NULL)
+ if (error != NULL)
{
GtkWidget *dialog;
+
dialog = gtk_message_dialog_new (parent,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
- _("Could not display help: %s"), err->message);
- g_signal_connect (G_OBJECT (dialog), "response",
- G_CALLBACK (gtk_widget_destroy),
- NULL);
- gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+ _("Could not display help: %s"),
+ error->message);
+ g_error_free (error);
+
+ g_signal_connect (dialog, "response",
+ G_CALLBACK (gtk_widget_destroy), NULL);
gtk_widget_show (dialog);
- g_error_free (err);
}
}
void
+ephy_gui_help (GtkWindow *parent,
+ const char *file_name,
+ const char *link_id)
+{
+ ephy_gui_help_with_doc_id (parent, NULL, file_name, link_id);
+}
+
+void
ephy_gui_get_current_event (GdkEventType *otype,
guint *ostate,
guint *obutton)
diff --git a/lib/ephy-gui.h b/lib/ephy-gui.h
index 089587b49..7b76cf247 100644
--- a/lib/ephy-gui.h
+++ b/lib/ephy-gui.h
@@ -74,6 +74,11 @@ void ephy_gui_help (GtkWindow *parent,
const char *file_name,
const char *link_id);
+void ephy_gui_help_with_doc_id (GtkWindow *parent,
+ const char *doc_id,
+ const char *file_name,
+ const char *link_id);
+
void ephy_gui_window_update_user_time (GtkWidget *window,
guint32 user_time);