How to remove #ifdef XP_MACOSX in xul files?

2016-01-31 Thread Yonggang Luo
How to remove #ifdef XP_MACOSX in xul files? ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: How to remove #ifdef XP_MACOSX in xul files?

2016-01-31 Thread Martin Thomson
sed -i~ -e '/#ifdef XP_MACOSX/d' xul files I think that we need more information on what it is that you intend to do if we are to make a sensible suggestion. On Mon, Feb 1, 2016 at 5:23 PM, Yonggang Luo wrote: > How to remove #ifdef XP_MACOSX

Re: How to remove #ifdef XP_MACOSX in xul files?

2016-02-01 Thread Yonggang Luo
d to > do if we are to make a sensible suggestion. > > On Mon, Feb 1, 2016 at 5:23 PM, Yonggang Luo > wrote: > > How to remove #ifdef XP_MACOSX in xul files? > > ___ > > dev-platform mailing list > > dev-platform@lists

Re: How to remove #ifdef XP_MACOSX in xul files?

2016-02-01 Thread Philipp Kewisch
Thomson wrote: > >> sed -i~ -e '/#ifdef XP_MACOSX/d' xul files >> >> I think that we need more information on what it is that you intend to >> do if we are to make a sensible suggestion. >> >> On Mon, Feb 1, 2016 at 5:23 PM, Yonggan

Re: How to remove #ifdef XP_MACOSX in xul files?

2016-02-02 Thread Philip Chee
On 01/02/2016 14:23, Yonggang Luo wrote: > How to remove #ifdef XP_MACOSX in xul files? 1. Move the OSX/WIN/NIX specific markup to separate XUL overlays. 2a. Ship different overlays depending on OS target. 2b. Use a chrome.manifest file with overlay directives and os specific flags. SeaMon

Re: How to remove #ifdef XP_MACOSX in xul files?

2016-02-02 Thread Philip Chee
On 01/02/2016 18:17, Philipp Kewisch wrote: > You can use runtime checks for the OS, e.g. using Services.appinfo > > Philipp Dude, he's talking about XUL, not JS. Please stop giving useless advice. Phil -- Philip Chee , http://flashblock.mozdev.org/ http://xsidebar.mozdev.org Guard us from th

Re: How to remove #ifdef XP_MACOSX in xul files?

2016-02-02 Thread Gijs Kruitbosch
On 02/02/2016 12:36, Philip Chee wrote: On 01/02/2016 18:17, Philipp Kewisch wrote: You can use runtime checks for the OS, e.g. using Services.appinfo Philipp Dude, he's talking about XUL, not JS. Please stop giving useless advice. It's perfectly possible to runtime-change the DOM tree as n

Re: How to remove #ifdef XP_MACOSX in xul files?

2016-02-03 Thread Yonggang Luo
On Tue, Feb 2, 2016 at 9:08 PM, Gijs Kruitbosch wrote: > On 02/02/2016 12:36, Philip Chee wrote: > >> On 01/02/2016 18:17, Philipp Kewisch wrote: >> >>> You can use runtime checks for the OS, e.g. using Services.appinfo >>> >>> Philipp >>> >> >> Dude, he's talking about XUL, not JS. Please stop g

Re: How to remove #ifdef XP_MACOSX in xul files?

2016-02-03 Thread Ehsan Akhgari
On 2016-02-03 4:03 AM, 罗勇刚(Yonggang Luo) wrote: If we have simple runtime directive to direct which part of XUL files should be exclude out , Like IE( There is no such thing, but you should be able to dynamically collapse the elements that you don't want in JS. __