devhelp r1078 - in trunk: . src
- From: rhult svn gnome org
- To: svn-commits-list gnome org
- Subject: devhelp r1078 - in trunk: . src
- Date: Thu, 2 Oct 2008 14:52:10 +0000 (UTC)
Author: rhult
Date: Thu Oct 2 14:52:09 2008
New Revision: 1078
URL: http://svn.gnome.org/viewvc/devhelp?rev=1078&view=rev
Log:
2008-10-02 Richard Hult <richard imendio com>
* src/dh-window.[ch] (_dh_window_display_uri): New private
function that displays a URI that is known to be in the docs.
Modified:
trunk/ChangeLog
trunk/src/dh-window.c
trunk/src/dh-window.h
Modified: trunk/src/dh-window.c
==============================================================================
--- trunk/src/dh-window.c (original)
+++ trunk/src/dh-window.c Thu Oct 2 14:52:09 2008
@@ -1507,3 +1507,21 @@
dh_search_grab_focus (DH_SEARCH (priv->search));
}
+
+/* Only call this with a URI that is known to be in the docs. */
+void
+_dh_window_display_uri (DhWindow *window,
+ const gchar *uri)
+{
+ DhWindowPriv *priv;
+ WebKitWebView *web_view;
+
+ g_return_if_fail (DH_IS_WINDOW (window));
+ g_return_if_fail (uri != NULL);
+
+ priv = window->priv;
+
+ web_view = window_get_active_web_view (window);
+ webkit_web_view_open (web_view, uri);
+ dh_book_tree_select_uri (DH_BOOK_TREE (priv->book_tree), uri);
+}
Modified: trunk/src/dh-window.h
==============================================================================
--- trunk/src/dh-window.h (original)
+++ trunk/src/dh-window.h Thu Oct 2 14:52:09 2008
@@ -23,9 +23,7 @@
#ifndef __DH_WINDOW_H__
#define __DH_WINDOW_H__
-#include <glib-object.h>
-#include <gtk/gtkwindow.h>
-
+#include <gtk/gtk.h>
#include "dh-base.h"
#define DH_TYPE_WINDOW (dh_window_get_type ())
@@ -52,5 +50,7 @@
void dh_window_search (DhWindow *window,
const gchar *str);
void dh_window_focus_search (DhWindow *window);
+void _dh_window_display_uri (DhWindow *window,
+ const gchar *uri);
#endif /* __DH_WINDOW_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]