Bug 224427 - Get this when visiting the site: "Gtk-WARNING **: invalid cast from 'GtkSuperWin' to 'GtkWidget'"
Patch contributed by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> r=caillon@gmail.com, sr=blizzard@mozilla.org git-svn-id: svn://10.0.0.236/trunk@160143 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1095,7 +1095,7 @@ NS_IMETHODIMP ns4xPluginInstance::SetWindow(nsPluginWindow* window)
|
||||
|
||||
gpointer user_data = nsnull;
|
||||
gdk_window_get_user_data(win, &user_data);
|
||||
if (user_data) {
|
||||
if (user_data && GTK_IS_WIDGET(user_data)) {
|
||||
GtkWidget* widget = GTK_WIDGET(user_data);
|
||||
|
||||
if (GTK_IS_SOCKET(widget))
|
||||
|
||||
Reference in New Issue
Block a user