[evolution-rss/evolution-rss-0-2-0] prevent destroying browser's parent window it seems webkit crashes if it's parent window is destroye



commit a012a80e107e886d137d6550565e7f7f650ffcff
Author: Lucian Langa <lucilanga gnome org>
Date:   Tue Jul 20 21:02:17 2010 +0300

    prevent destroying browser's parent window
    it seems webkit crashes if it's parent window is destroyed first

 src/rss.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index a8faf87..b715000 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -1732,7 +1732,6 @@ org_gnome_rss_browser (EMFormatHTML *efh, void *eb, EMFormatHTMLPObject *pobject
 	}
 #endif
 
-	po->container = rf->mozembed;
 #if (DATASERVER_VERSION >= 2031002)
 	online =  camel_session_get_online (session);
 #else
@@ -1771,7 +1770,9 @@ org_gnome_rss_browser (EMFormatHTML *efh, void *eb, EMFormatHTMLPObject *pobject
 		gtk_widget_show_all(rf->mozembed);
 
 	gtk_container_add ((GtkContainer *) eb, rf->mozembed);
-	g_object_ref(rf->mozembed);
+	//appears distroying webkit's parent window results in crash
+	g_object_ref(eb);
+	po->container = eb;
 	rf->headers_mode = myf->mode;
 
 #if EVOLUTION_VERSION >= 23103
@@ -2000,7 +2001,7 @@ free_rss_browser(EMFormatHTMLPObject *o)
 					GTK_WIDGET(po->format->html)));
 #endif
 	g_signal_handler_disconnect(adj, po->sh_handler);
-	gtk_widget_destroy(po->container);
+	g_object_unref(po->container);
 	g_free(po->website);
 	browser_fetching = 0;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]