summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikael Hallendal <micke@codefactory.se>2002-03-03 04:13:30 +0000
committerMikael Hallendal <hallski@src.gnome.org>2002-03-03 04:13:30 +0000
commit0cc6ef2c505baa853c107f96431b786c60871398 (patch)
tree9d110058b5092475975ba053a65dc617615ba116 /src
parent36b12b07405ec21478aad56ca71d47172f83289f (diff)
downloadyelp-0cc6ef2c505baa853c107f96431b786c60871398.tar.gz
added, needed for session management.
2002-03-03 Mikael Hallendal <micke@codefactory.se> * src/yelp-window.c: (yelp_window_get_current_uri): added, needed for session management. * src/yelp-html.c (yh_free_stream_data): removed debug printout.
Diffstat (limited to 'src')
-rw-r--r--src/yelp-html.c2
-rw-r--r--src/yelp-window.c7
-rw-r--r--src/yelp-window.h1
3 files changed, 8 insertions, 2 deletions
diff --git a/src/yelp-html.c b/src/yelp-html.c
index 19585c56..fbc97673 100644
--- a/src/yelp-html.c
+++ b/src/yelp-html.c
@@ -312,8 +312,6 @@ yh_free_stream_data (StreamData *sdata, gboolean remove)
priv->connections = g_slist_remove (priv->connections, sdata);
}
- g_print ("Out of stream_data\n");
-
if (sdata->anchor) {
g_free (sdata->anchor);
}
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 9c20b223..f0b8d01f 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -674,3 +674,10 @@ yelp_window_open_uri (YelpWindow *window,
yw_handle_url (window, str_uri);
}
+const gchar *
+yelp_window_get_current_uri (YelpWindow *window)
+{
+ g_return_val_if_fail (YELP_IS_WINDOW (window), NULL);
+
+ return yelp_history_get_current (window->priv->history);
+}
diff --git a/src/yelp-window.h b/src/yelp-window.h
index 0743e277..0e184f9a 100644
--- a/src/yelp-window.h
+++ b/src/yelp-window.h
@@ -58,5 +58,6 @@ GtkWidget * yelp_window_new (GNode *doc_tree,
void yelp_window_open_uri (YelpWindow *window,
const gchar *str_uri);
+const gchar * yelp_window_get_current_uri (YelpWindow *window);
#endif /* __YELP_WINDOW_H__ */