Closed Bug 265983 Opened 20 years ago Closed 20 years ago

Popup creation leads to GTK warnings

Categories

(Core Graveyard :: GFX: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: roc)

References

Details

Attachments

(1 file)

Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject'
warning: attempted to CreateNative() width a non-superwin and non gtk container
parent


The problem is that we get the native data off a ChildWindow and try to use it
as the parent for the popup's native widget.  This fails, apparently.
*** Bug 265982 has been marked as a duplicate of this bug. ***
Attached patch fixSplinter Review
Basically we just need to call GetNativeData(NS_NATIVE_WIDGET) instead of
NS_NATIVE_WINDOW; the former gets us a 'superwin' which GTK1
nsWindow::NativeCreate can use, the latter gets us nothing which can be used by
nsWindow::NativeCreate. This is safe for other platforms because on Mac,
Windows and GTK2 NS_NATIVE_WINDOW and NS_NATIVE_WIDGET return exactly the same
thing.
Assignee: blizzard → roc
Status: NEW → ASSIGNED
Attachment #163780 - Flags: superreview?(bzbarsky)
Attachment #163780 - Flags: review?(bzbarsky)
Comment on attachment 163780 [details] [diff] [review]
fix

r+sr=bzbarsky.
Attachment #163780 - Flags: superreview?(bzbarsky)
Attachment #163780 - Flags: superreview+
Attachment #163780 - Flags: review?(bzbarsky)
Attachment #163780 - Flags: review+
Checked in. I think this is the last of the fallout from the widget change
batching...
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: