Closed
Bug 273877
Opened 20 years ago
Closed 19 years ago
Stop using the argc/argv params passed to nsIAppShell::Create
Categories
(Core Graveyard :: GFX, defect)
Core Graveyard
GFX
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: benjamin, Assigned: benjamin)
Details
Attachments
(2 files, 1 obsolete file)
14.87 KB,
patch
|
darin.moz
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
810 bytes,
patch
|
zack
:
review+
|
Details | Diff | Splinter Review |
In order to fix the command-line-handling APIs (see http://wiki.mozilla.org/index.php/XUL:Command_Line_Handling), I need to solve the dependencies of widget code on the command line. These dependencies also cause weird problems for gecko embedders. The solution I'm going to strongly recommend (and provide a patch for) requires XUL applications to initialize gtk/qt/xlib in nsAppRunner.cpp; this means that the argc/argv params to nsIAppShell::Create can be unused. We already special-case gtk_init (for the splash screen I think), so this bug is mainly about qt + xlib.
Comment 1•20 years ago
|
||
This special cases Qt. Actually "special casing" is misleading because QApplication should really be created in the main so this patch would allow me to make the code in nsAppShell in Qt a _lot_ cleaner.
Assignee | ||
Comment 2•20 years ago
|
||
Yeh, gimme a few hours to post my patch, willya? :-P
Assignee | ||
Comment 3•20 years ago
|
||
timeless or somebody else will need to figure out a good way to handle the xlib port
Assignee: general → bsmedberg
Attachment #168317 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Attachment #168338 -
Flags: superreview?(roc)
Attachment #168338 -
Flags: review?(darin)
Comment 4•20 years ago
|
||
One more thing the: +#if defined(MOZ_WIDGET_QT) +#include <qapplication.h> +#endif part from xpfe/bootstrap/nsAppRunner.cpp has to go before #ifdef MOZ_X11 #include <X11/Xlib.h> #endif /* MOZ_X11 */ Otherwise Qt gets mighty confused by X11 globals like None, CursorShape, FocusIn or FocusOut and compilation will abort. You can also just #undef them before including qapplication but it's just easier to change the order of includes
Comment 5•20 years ago
|
||
Comment on attachment 168338 [details] [diff] [review] Remove command-line handling from the nsIAppShell equation. looks good to me, r=darin
Attachment #168338 -
Flags: review?(darin) → review+
Comment on attachment 168338 [details] [diff] [review] Remove command-line handling from the nsIAppShell equation. * @param aCmdLineService * This is stored and passed to appshell components as they are * initialized. remove this part of the comment.
Attachment #168338 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 7•20 years ago
|
||
fixed on trunk. Timeless, do you want a followup bug about xlib?
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 8•20 years ago
|
||
I'd request two reviews, but I can't, so I'll use the superreview flag for that...
Attachment #169304 -
Flags: superreview?(bsmedberg)
Attachment #169304 -
Flags: review?(zack)
Assignee | ||
Comment 9•20 years ago
|
||
Reopen this until QT is fixed.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 10•20 years ago
|
||
Comment on attachment 169304 [details] [diff] [review] fix qt build I don't know about the difference between TK_LIBS and MOZ_QT_LDFLAGS, but if Zack says this is fine it's fine with me too. Note to the random world, we probably need to update browser/app/Makefile.in etc with this change also.
Attachment #169304 -
Flags: superreview?(bsmedberg) → superreview+
Comment 11•20 years ago
|
||
Comment on attachment 169304 [details] [diff] [review] fix qt build Looks good to me. I find MOZ_QT_LDFLAGS a little clearer in places like this though.
Attachment #169304 -
Flags: superreview?(bsmedberg)
Attachment #169304 -
Flags: superreview+
Attachment #169304 -
Flags: review?(zack)
Attachment #169304 -
Flags: review+
Comment 12•20 years ago
|
||
Comment on attachment 169304 [details] [diff] [review] fix qt build ok, checked in with MOZ_QT_LDFLAGS. maybe it would be better, though, to always link with $(TK_LIBS) here, instead of the specialcasing for the different toolkits? leaving bug open for the browser/app/Makefile.in thing bsmedberg mentioned (which I won't fix)
Attachment #169304 -
Flags: superreview?(bsmedberg)
This caused bug bug 281244.
Assignee | ||
Updated•19 years ago
|
Status: REOPENED → RESOLVED
Closed: 20 years ago → 19 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•