r3003 - in trunk/src/target/OM-2007.2/applications/openmoko-browser2: . src
zecke at sita.openmoko.org
zecke at sita.openmoko.org
Tue Sep 18 03:41:01 CEST 2007
Author: zecke
Date: 2007-09-18 03:41:00 +0200 (Tue, 18 Sep 2007)
New Revision: 3003
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-browser2/ChangeLog
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/current-page.c
Log:
2007-09-17 Holger Hans Peter Freyther <zecke at selfish.org>
Go to the "Go"-Page if we have no other open BrowserPage
* src/current-page.c:
(current_close_page):
Modified: trunk/src/target/OM-2007.2/applications/openmoko-browser2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-browser2/ChangeLog 2007-09-18 01:40:58 UTC (rev 3002)
+++ trunk/src/target/OM-2007.2/applications/openmoko-browser2/ChangeLog 2007-09-18 01:41:00 UTC (rev 3003)
@@ -1,5 +1,12 @@
2007-09-17 Holger Hans Peter Freyther <zecke at selfish.org>
+ Go to the "Go"-Page if we have no other open BrowserPage
+
+ * src/current-page.c:
+ (current_close_page):
+
+2007-09-17 Holger Hans Peter Freyther <zecke at selfish.org>
+
Work around another Gtk+ crash. If we remove a WebKitGtkPage
and add another one (gtk_container_{add,remove}) without accesing
the event loop we will get a crash.
Modified: trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/current-page.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/current-page.c 2007-09-18 01:40:58 UTC (rev 3002)
+++ trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/current-page.c 2007-09-18 01:41:00 UTC (rev 3003)
@@ -74,7 +74,8 @@
struct BrowserPage* oldCurrent = data->currentPage;
data->browserPages = g_list_remove (data->browserPages, oldCurrent);
set_current_page (NULL, data);
- gtk_notebook_set_current_page (GTK_NOTEBOOK (data->mainNotebook), 2);
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (data->mainNotebook),
+ g_list_first(data->browserPages) ? 2 : 1);
g_object_unref (oldCurrent->webKitPage);
More information about the commitlog
mailing list