<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,6 +28,8 @@
 
 static void html_class_init(HtmlClass *);
 static void html_init(Html *);
+static void html_location_changed(Html* self);
+
 
 static gboolean webkit_web_view_mouse_click_cb(WebKitWebView *, gpointer, Html *);
 
@@ -170,12 +172,12 @@ static void
 webkit_web_view_title_changed_cb (WebKitWebView*  web_view,
                                   WebKitWebFrame* web_frame,
                                   const gchar*    title,
-                                  Html*     html)
+                                  Html*     self)
 {
 	const gchar *uri;
 	uri = webkit_web_frame_get_uri(web_frame);
-	g_signal_emit(html, signals[TITLE_CHANGED], 0, g_strdup(title));
-	g_signal_emit(html, signals[LOCATION_CHANGED], 0,g_strdup(uri) );
+	g_signal_emit(self, signals[TITLE_CHANGED], 0, g_strdup(title));
+	html_location_changed(self);
 }
 
 static void
@@ -312,17 +314,19 @@ html_can_go_back(Html *html)
 }
 
 void
-html_go_forward(Html *html)
+html_go_forward(Html* self)
 {
-        g_return_if_fail(IS_HTML (html));
-        webkit_web_view_go_forward(html-&gt;webview);
+        g_return_if_fail(IS_HTML (self));
+        webkit_web_view_go_forward(self-&gt;webview);
+    	html_location_changed(self);
 }
 
 void
-html_go_back(Html *html)
+html_go_back(Html * self)
 {
-        g_return_if_fail(IS_HTML (html));
-        webkit_web_view_go_back(html-&gt;webview);
+	g_return_if_fail(IS_HTML (self));
+	webkit_web_view_go_back(self-&gt;webview);
+	html_location_changed(self);
 }
 
 gchar *
@@ -513,3 +517,9 @@ void chmsee_ihtml_interface_init (ChmseeIhtmlInterface *iface) {
   iface-&gt;clear = html_clear;
   iface-&gt;shutdown = html_shutdown;
 }
+
+static void html_location_changed(Html* self) {
+	gchar* uri = g_strdup(webkit_web_view_get_uri(self-&gt;webview));
+	g_signal_emit(self, signals[LOCATION_CHANGED], 0, uri);
+	g_free(uri);
+}</diff>
      <filename>src/html.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d1694ba9ce875ac8a7248b65dcdb5722f720ab12</id>
    </parent>
  </parents>
  <author>
    <name>LI Daobing</name>
    <email>lidaobing@gmail.com</email>
  </author>
  <url>http://github.com/lidaobing/chmsee/commit/4afb2e34fb97eba1c991469abec44a6829225059</url>
  <id>4afb2e34fb97eba1c991469abec44a6829225059</id>
  <committed-date>2009-09-19T21:22:21-07:00</committed-date>
  <authored-date>2009-09-19T21:22:21-07:00</authored-date>
  <message>back and forward should trigger location_changed.</message>
  <tree>8df8748861f2e704891275e4974b08ce12bcd0f5</tree>
  <committer>
    <name>LI Daobing</name>
    <email>lidaobing@gmail.com</email>
  </committer>
</commit>
