[Webkit-unassigned] [Bug 14750] [gtk] Implement plugin support in GTK backend
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 23 18:55:16 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=14750
chuanhsing at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chuanhsing at gmail.com
------- Comment #74 from chuanhsing at gmail.com 2008-04-23 18:55 PDT -------
WebCore/plugins/gtk/PluginViewGtk.cpp
NPSetWindowCallbackStruct ws;
ws.type = 0;
if (m_needsXEmbed) {
ws.display = GDK_WINDOW_XDISPLAY(m_window->window);
ws.visual =
GDK_VISUAL_XVISUAL(gdk_drawable_get_visual(GDK_DRAWABLE(m_window->window)));
ws.depth =
gdk_drawable_get_visual(GDK_DRAWABLE(m_window->window))->depth;
ws.colormap =
GDK_COLORMAP_XCOLORMAP(gdk_drawable_get_colormap(GDK_DRAWABLE(m_window->window)));
} else {
ws.display = GTK_XTBIN(m_window)->xtdisplay;
ws.visual = GTK_XTBIN(m_window)->xtclient.xtvisual;
ws.depth = GTK_XTBIN(m_window)->xtclient.xtdepth;
ws.colormap = GTK_XTBIN(m_window)->xtclient.xtcolormap;
XFlush (ws.display);
}
m_npWindow.ws_info = &ws;
should be:
NPSetWindowCallbackStruct *ws = new NPSetWindowCallbackStruct();
ws->type = 0;
if (m_needsXEmbed) {
ws->display = GDK_WINDOW_XDISPLAY(m_window->window);
ws->visual =
GDK_VISUAL_XVISUAL(gdk_drawable_get_visual(GDK_DRAWABLE(m_window->window)));
ws->depth =
gdk_drawable_get_visual(GDK_DRAWABLE(m_window->window))->depth;
ws->colormap =
GDK_COLORMAP_XCOLORMAP(gdk_drawable_get_colormap(GDK_DRAWABLE(m_window->window)));
} else {
ws->display = GTK_XTBIN(m_window)->xtdisplay;
ws->visual = GTK_XTBIN(m_window)->xtclient.xtvisual;
ws->depth = GTK_XTBIN(m_window)->xtclient.xtdepth;
ws->colormap = GTK_XTBIN(m_window)->xtclient.xtcolormap;
XFlush (ws->display);
}
m_npWindow.ws_info = ws;
--
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