[kazehakase-svn] [3516] * module/embed/webkit-gtk/kz-webkit-gtk/c: To restore session works

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Thu Dec 25 15:12:20 JST 2008


Revision: 3516
          http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3516
Author:   ikezoe
Date:     2008-12-25 15:12:20 +0900 (Thu, 25 Dec 2008)

Log Message:
-----------
	* module/embed/webkit-gtk/kz-webkit-gtk/c: To restore session works
	fine after applying the patch of
	https://bugs.webkit.org/show_bug.cgi?id=22988.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/module/embed/webkit-gtk/kz-webkit-gtk.c

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2008-12-25 05:05:57 UTC (rev 3515)
+++ kazehakase/trunk/ChangeLog	2008-12-25 06:12:20 UTC (rev 3516)
@@ -3,6 +3,9 @@
 	* module/embed/webkit-gtk/kz-webkit-gtk.c: Open a new tab with middle
 	click. Also store navigation history but still buggy.
 	* module/embed/webkit-gtk/kz-webkit-gtk.c: Zoom function.
+	* module/embed/webkit-gtk/kz-webkit-gtk/c: To restore session works
+	fine after applying the patch of
+	https://bugs.webkit.org/show_bug.cgi?id=22988.
 
 2008-10-29  Ryo SHIMIZU  <furyo****@on-ai*****>
 

Modified: kazehakase/trunk/module/embed/webkit-gtk/kz-webkit-gtk.c
===================================================================
--- kazehakase/trunk/module/embed/webkit-gtk/kz-webkit-gtk.c	2008-12-25 05:05:57 UTC (rev 3515)
+++ kazehakase/trunk/module/embed/webkit-gtk/kz-webkit-gtk.c	2008-12-25 06:12:20 UTC (rev 3516)
@@ -760,11 +760,11 @@
 static void
 set_history (KzEmbed *kzembed, KzBookmark *history)
 {
-#if 0
+/*
 	WebKitWebBackForwardList *list;
-        WebKitWebHistoryItem *item;
+	WebKitWebHistoryItem *item;
 	GList *children, *node;
-        gint current_pos;
+	gint current_pos, total = 0;
 
 	list = webkit_web_view_get_back_forward_list(KZ_WEBKIT_GTK_GET_PRIVATE(kzembed)->web_view);
 	if (!list)
@@ -775,16 +775,17 @@
 	{
 		KzBookmark *child = KZ_BOOKMARK(node->data);
 
-                item = webkit_web_history_item_new_with_data(kz_bookmark_get_link(child),
-		                                             kz_bookmark_get_title(child));
-                webkit_web_back_forward_list_add_item(list, item);
+		item = webkit_web_history_item_new_with_data(kz_bookmark_get_link(child),
+				kz_bookmark_get_title(child));
+		webkit_web_back_forward_list_add_item(list, item);
+		total++;
 	}
 	g_list_free(children);
 
 	current_pos = kz_bookmark_get_current(history);
-        item  = webkit_web_back_forward_list_get_nth_item(list, current_pos);
-        webkit_web_back_forward_list_go_to_item(list, item);
-#endif
+	item  = webkit_web_back_forward_list_get_nth_item(list, current_pos - total + 1);
+	webkit_web_view_go_to_back_forward_item(KZ_WEBKIT_GTK_GET_PRIVATE(kzembed)->web_view, item);
+*/
 }
 
 static gboolean



More information about the Kazehakase-cvs mailing list
Back to archive index