Closed
Bug 162507
Opened 22 years ago
Closed 22 years ago
Default icon should not be set for embedding applications
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mpgritti, Assigned: blizzard)
References
Details
Attachments
(1 file, 4 obsolete files)
6.22 KB,
patch
|
Details | Diff | Splinter Review |
The new gtk2 icon code override the icon set by galeon with the mozilla icons.
To reproduce just try TestGtkEmbed and see that it use the mozilla icon.
Reporter | ||
Comment 1•22 years ago
|
||
The patch fix the problem by setting the default icon on Create, only when the
window type is not a child. So it will set it on the mozilla toplevel creation
but not on the gtkmozembed child creation.
I couldnt think to a cleaner fix ... hope it's ok.
Reporter | ||
Comment 2•22 years ago
|
||
Just noticed that the patch doesnt fix the problem entirely, will try to
investigate more.
Reporter | ||
Comment 3•22 years ago
|
||
Ok on some sites (www.linuxtoday.com, this bug page, www.slashdot.org), the
patch doesnt work because a toplevel (popup type) is created and immediately
destroyed ... Is this supposed to happen ?
Also I should have used mIsTopLevel instead of testing the type directly I guess.
Reporter | ||
Comment 4•22 years ago
|
||
The patch leave the popup toplevel out of our test. Appear to work this time.
Attachment #95106 -
Attachment is obsolete: true
Reporter | ||
Comment 5•22 years ago
|
||
The problem is more serious than I thought. Overriding the icon cause critical
g_object_unref warnings and crashes when closing windows. (Changing severity)
Assignee | ||
Comment 6•22 years ago
|
||
Maybe using the default icon is a bad idea. Maybe we just need to set it for
toplevel windows every time. That's reasonable. This patch just sets the
default icon for the app once someone opens a toplevel window, which an app
might not want mozilla to do. :)
Reporter | ||
Comment 7•22 years ago
|
||
I was assuming we had two cases
1 Embedding apps. A toplevel window is never created (through nsWindow) and we
dont want the default icon to be set.
2 Mozilla. A toplevel window is created and we want to set the default icon.
So, I'm sure I'm missing something, I cant get what is "which an app
might not want mozilla to do" referred to.
Anyway, setting the icon every time sounds like a good solution to me. Thanks
for looking into this.
Assignee | ||
Comment 8•22 years ago
|
||
There's no way for the code to tell when Mozilla is embedded and when it isn't.
And, frankly, I don't think that we should have to worry about it. If we
create a toplevel window, we should be setting the icon, and we shouldn't use
the set_default at all.
Reporter | ||
Comment 9•22 years ago
|
||
Note that these days another icon is set outside the widget implementation
using SetIcon.
So default.xpm is not visible (at least in the cases I verified).
I wonder if we still need to set the icon in nsWindow at all ...
Attachment #95122 -
Attachment is obsolete: true
Comment 10•22 years ago
|
||
The previous patch didn't apply anymore. I've updated it for current trunk.
Assignee | ||
Comment 11•22 years ago
|
||
Fixing icon handling.
Attachment #96714 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Attachment #103964 -
Attachment is obsolete: true
Assignee | ||
Comment 12•22 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•