[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Using classic theme in swt.browser on Linux / mozilla on windows
|
Hi,
thanks for the hints, I'm using ubuntu-6.06-rc-desktop-i386 without any
changes to mozilla files.
Looking at "/usr/lib/mozilla/chrome/chrome.rdf" (linked to
/var/lib/mozilla/chrome/chrome.rdf) I found this code:
<RDF:Description RDF:about="urn:mozilla:package:global"
c:baseURL="jar:resource:/chrome/toolkit.jar!/content/global/"
c:locType="install"
c:displayName="Toolkit"
c:author="mozilla.org"
c:name="global"
c:localeVersion="1.7"
c:skinVersion="1.5">
<c:selectedSkin RDF:resource="urn:mozilla:skin:modern/1.0:global"/>
<c:selectedLocale RDF:resource="urn:mozilla:locale:en-US:global"/>
</RDF:Description>
I changed (as root):
<c:selectedSkin RDF:resource="urn:mozilla:skin:modern/1.0:global"/>
To:
<c:selectedSkin RDF:resource="urn:mozilla:skin:classic/1.0:global"/>
and the classic theme comes up for all users. It seems that the custom
chrome.rdf in the user's profile gets ignored.
bye
Thomas
Daniel Spiewak wrote:
In terms of the Mozilla core, when you set the theme by opening the
application, you're changing a setting in your profile chrome.js
file. This file is contained in your home folder and is actually
never touched by the GRE browser widget when it is embedded in other
applications. And even if it were, other platforms wouldn't have the
same file.
Not all platforms default Mozilla to the modern theme. In fact,
having tested on all the RedHat deviants, Mandrake, Debian, Ubuntu,
Gentoo, Knoppix and a couple others I can't remember now, almost all
of them have the default theme for the GRE browser widget as classic.
Though, I have to admit that I'm surprised that you're getting
different results on Ubuntu than I do. Are you sure you haven't
changed a config file somewhere?
This looks like something you'll have to hack around on a
system-by-system basis. And given how fragile a patch to the SWT
source to fix this would be, I doubt it would be done.
Daniel
On 8/13/06, *Thomas Bley* <thbley@xxxxxxxxx <mailto:thbley@xxxxxxxxx>>
wrote:
Hi,
I'm using swt 3.2 on WinXP and Ubuntu.
When using the browser widget on Linux, the Mozilla modern theme is
applied by default.
I launched Mozilla and set the theme to classic, Mozilla applies it.
When I view a page in the browser widget the theme is still modern
instead of classic.
Searching google I found a debian patch from oktober 2005:
http://lists.alioth.debian.org/pipermail/pkg-java-commits/2005-October/001132.html
<http://lists.alioth.debian.org/pipermail/pkg-java-commits/2005-October/001132.html>
swt/browser/Browser.java
// set classic theme
-+ nsIXULChromeRegistry chromRegistry = new
nsIXULChromeRegistry(result[0]);
Is it a known problem ? How can I patch the 3.2-src for this ?
I think there was already some discussion about using mozilla as
browser
widget under windows, so is it possible to offer both,
mozilla and IE under windows in one of the next releases ? (This makes
things a lot easier because I only need to code/test for one
browser ...)
Having the webkit engine as additional browser on all platforms would
also be ok.
Thanks and bye
Thomas
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx <mailto:platform-swt-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
------------------------------------------------------------------------
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev