[Webkit-unassigned] [Bug 14678] [gdk] API Drafting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 23 10:31:19 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14678





------- Comment #17 from xan.lopez at gmail.com  2007-07-23 10:31 PDT -------

> +static void webkit_gtk_page_register_rendering_area_events(GtkWidget* win,
> WebKitGtkPage* page)
> +{
> +    gdk_window_set_events(GTK_IS_LAYOUT(win) ? GTK_LAYOUT(win)->bin_window :
> win->window,
> +                          (GdkEventMask)(GDK_EXPOSURE_MASK
> +                            | GDK_BUTTON_PRESS_MASK
> +                            | GDK_BUTTON_RELEASE_MASK
> +                            | GDK_POINTER_MOTION_MASK
> +                            | GDK_KEY_PRESS_MASK
> +                            | GDK_KEY_RELEASE_MASK
> +                            | GDK_BUTTON_MOTION_MASK
> +                            | GDK_BUTTON1_MOTION_MASK
> +                            | GDK_BUTTON2_MOTION_MASK
> +                            | GDK_BUTTON3_MOTION_MASK));
> 
> Set the realize handler and do this there. 
> 

This was not very clear, you shouldn't do it that way. You could call the
parent's implementation and then modify the event mask (get the mask from
parent, add yours, set).


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list