зеркало из https://github.com/mozilla/gecko-dev.git
for bug 180147 [gtk2] need to port over the null plugin.patch=robin.lu@sun.com
r=blizzard sr=bryner
This commit is contained in:
Родитель
f5c66b92aa
Коммит
45f53df243
|
@ -376,14 +376,15 @@ createPixmap(PluginInstance *This)
|
||||||
GdkWindow *gdk_window = getGdkWindow(This);
|
GdkWindow *gdk_window = getGdkWindow(This);
|
||||||
if (gdk_window)
|
if (gdk_window)
|
||||||
{
|
{
|
||||||
#ifdef MOZ_ENABLE_GTK
|
GtkWidget *widget;
|
||||||
style = gtk_widget_get_style((GtkWidget *)gdk_window->user_data);
|
#ifndef MOZ_WIDGET_GTK2
|
||||||
#endif
|
widget = (GtkWidget *)gdk_window->user_data;
|
||||||
#ifdef MOZ_ENABLE_GTK2
|
#else
|
||||||
gpoint user_data = nsnull;
|
gpointer user_data = NULL;
|
||||||
gdk_window_get_user_data( gdk_window, user_data);
|
gdk_window_get_user_data( gdk_window, &user_data);
|
||||||
style = gtk_widget_get_style(GTK_WIDGET(user_data));
|
widget = GTK_WIDGET(user_data);
|
||||||
#endif
|
#endif
|
||||||
|
style = gtk_widget_get_style(widget);
|
||||||
nullPluginGdkPixmap = gdk_pixmap_create_from_xpm_d(gdk_window , &mask,
|
nullPluginGdkPixmap = gdk_pixmap_create_from_xpm_d(gdk_window , &mask,
|
||||||
&style->bg[GTK_STATE_NORMAL], npnul320_xpm);
|
&style->bg[GTK_STATE_NORMAL], npnul320_xpm);
|
||||||
/* Pixmap is created on original X session but used by new session */
|
/* Pixmap is created on original X session but used by new session */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче