mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
fix for #101974 acrobat plugin resize problem, r=pavlov, sr=blizzard,a=asa
This commit is contained in:
parent
093940ff41
commit
e56b81814e
@ -998,6 +998,7 @@ NS_IMETHODIMP ns4xPluginInstance::SetWindow(nsPluginWindow* window)
|
||||
// to the actual X window
|
||||
window->window = (nsPluginPort *)GTK_XTBIN(mXtBin)->xtwindow;
|
||||
|
||||
gtk_xtbin_resize(mXtBin, window->width, window->height);
|
||||
|
||||
#elif defined(MOZ_WIDGET_XLIB)
|
||||
|
||||
|
@ -451,6 +451,19 @@ gtk_xtbin_set_position (GtkXtBin *xtbin,
|
||||
gdk_window_move (GTK_WIDGET (xtbin)->window, x, y);
|
||||
}
|
||||
|
||||
void
|
||||
gtk_xtbin_resize (GtkWidget *widget,
|
||||
gint width,
|
||||
gint height)
|
||||
{
|
||||
Arg args[2];
|
||||
GtkXtBin *xtbin = GTK_XTBIN (widget);
|
||||
Widget xtwidget = XtWindowToWidget(xtbin->xtdisplay, xtbin->xtwindow);
|
||||
|
||||
XtSetArg(args[0], XtNheight, height);
|
||||
XtSetArg(args[1], XtNwidth, width);
|
||||
XtSetValues(XtParent(xtwidget), args, 2);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_xtbin_shutdown (GtkObject *object)
|
||||
|
@ -66,6 +66,9 @@ GtkWidget *gtk_xtbin_new (GdkWindow *parent_window, String *f);
|
||||
void gtk_xtbin_set_position (GtkXtBin *xtbin,
|
||||
gint x,
|
||||
gint y);
|
||||
void gtk_xtbin_resize (GtkWidget *widget,
|
||||
gint width,
|
||||
gint height);
|
||||
|
||||
typedef struct _XtTMRec {
|
||||
XtTranslations translations; /* private to Translation Manager */
|
||||
|
Loading…
x
Reference in New Issue
Block a user