mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 20:20:00 +00:00
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
This commit is contained in:
parent
d341a177a5
commit
5097abb853
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user