Bug 21391

Summary: [Gtk] Invalid cast from GdkWindow to GtkWidget
Product: WebKit Reporter: Jan Alonzo <jmalonzo>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal Keywords: Gtk
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
fixed a misplaced closing parenthesis darin: review+

Description Jan Alonzo 2008-10-05 14:26:18 PDT
I'm getting this warnings from the console when running the acid 3 tests:

(lt-GtkLauncher:24087): GLib-GObject-WARNING **: invalid cast from `GdkWindow' to `GtkWidget'

(lt-GtkLauncher:24087): GLib-GObject-WARNING **: invalid cast from `GdkWindow' to `GtkWidget'

(lt-GtkLauncher:24087): GLib-GObject-WARNING **: invalid cast from `GdkWindow' to `GtkWidget'

(lt-GtkLauncher:24087): GLib-GObject-WARNING **: invalid cast from `GdkWindow' to `GtkWidget'

(lt-GtkLauncher:24087): GLib-GObject-WARNING **: invalid cast from `GdkWindow' to `GtkWidget'

(lt-GtkLauncher:24087): GLib-GObject-WARNING **: invalid cast from `GdkWindow' to `GtkWidget'
Comment 1 Jan Alonzo 2008-10-05 14:31:26 PDT
Created attachment 24102 [details]
fixed a misplaced closing parenthesis

The patch should fix the invalid cast by fixing a misplaced parenthesis to cast the widget and not the widget's window (which is a GdkWindow)
Comment 2 Darin Adler 2008-10-05 14:32:15 PDT
Comment on attachment 24102 [details]
fixed a misplaced closing parenthesis

r=me
Comment 3 Jan Alonzo 2008-10-05 14:50:25 PDT
Thanks! Landed in r37318