seahorse r2606 - in seahorse-plugins/trunk: . plugins/epiphany/mozilla



Author: sadam
Date: Tue Nov  4 22:17:02 2008
New Revision: 2606
URL: http://svn.gnome.org/viewvc/seahorse?rev=2606&view=rev

Log:
2008-11-04  Adam Schreiber  <sadam clemson edu>

    * plugins/epiphany/mozilla/mozilla-helper.cpp: Fix casting of 
EphyEmbed.
    Fixes bug #545020


Modified:
   seahorse-plugins/trunk/ChangeLog
   seahorse-plugins/trunk/plugins/epiphany/mozilla/mozilla-helper.cpp

Modified: seahorse-plugins/trunk/plugins/epiphany/mozilla/mozilla-helper.cpp
==============================================================================
--- seahorse-plugins/trunk/plugins/epiphany/mozilla/mozilla-helper.cpp	(original)
+++ seahorse-plugins/trunk/plugins/epiphany/mozilla/mozilla-helper.cpp	Tue Nov  4 22:17:02 2008
@@ -78,8 +78,8 @@
 mozilla_is_input (EphyEmbed *embed)
 {
 	nsCOMPtr<nsIWebBrowser> browser;
-	gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED (embed),
-			getter_AddRefs (browser));
+	gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED (gtk_bin_get_child (GTK_BIN (embed))),
+			                         getter_AddRefs (browser));
 	nsCOMPtr<nsIWebBrowserFocus> focus (do_QueryInterface(browser));
 	if (!focus) return FALSE;
 
@@ -100,7 +100,7 @@
 mozilla_get_text (EphyEmbed *embed)
 {
     nsCOMPtr<nsIWebBrowser> browser;
-	gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED (embed),
+	gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED (gtk_bin_get_child (GTK_BIN (embed))),
 			getter_AddRefs (browser));
 	nsCOMPtr<nsIWebBrowserFocus> focus (do_QueryInterface(browser));
 	if (!focus) 
@@ -139,7 +139,7 @@
 mozilla_set_text (EphyEmbed *embed, char *new_text)
 {
     nsCOMPtr<nsIWebBrowser> browser;
-	gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED (embed),
+	gtk_moz_embed_get_nsIWebBrowser (GTK_MOZ_EMBED (gtk_bin_get_child (GTK_BIN (embed))),
 			getter_AddRefs (browser));
 	nsCOMPtr<nsIWebBrowserFocus> focus (do_QueryInterface(browser));
 	if (!focus) return;



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