diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-11-06 13:01:57 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-11-06 13:01:57 +0100 |
commit | 1d81a7236ec40ce5367e824cd7c74a7e0f8d1fff (patch) | |
tree | ec2abc18f1b3d5422d26bba55a6d9558b157b159 /wmclass.patch | |
parent | 1e280f45ccf3289598a4a288227eac1e555242b7 (diff) |
firefox 4.0b7 build1
Diffstat (limited to 'wmclass.patch')
-rw-r--r-- | wmclass.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/wmclass.patch b/wmclass.patch new file mode 100644 index 0000000..5fe76ac --- /dev/null +++ b/wmclass.patch @@ -0,0 +1,29 @@ +# +# Online Desktop expects WMCLASS to match the .desktop file +# Since renaming the .desktop file is bad, work around this here +# + +diff -up ./widget/src/gtk2/nsWindow.cpp.wmclass ./widget/src/gtk2/nsWindow.cpp +--- ./widget/src/gtk2/nsWindow.cpp.wmclass 2010-10-25 11:33:21.649433261 -0700 ++++ ./widget/src/gtk2/nsWindow.cpp 2010-10-25 11:36:19.864431870 -0700 +@@ -3738,6 +3738,10 @@ nsWindow::Create(nsIWidget *aPare + GetBrandName(brandName); + NS_ConvertUTF16toUTF8 cBrand(brandName); + ++ if (brandName.EqualsLiteral("Minefield")) { ++ cBrand.Assign("Firefox"); ++ } ++ + if (mWindowType == eWindowType_dialog) { + mShell = gtk_window_new(GTK_WINDOW_TOPLEVEL); + SetDefaultIcon(); +@@ -4109,6 +4113,9 @@ nsWindow::SetWindowClass(const nsAString + #ifdef MOZ_X11 + nsXPIDLString brandName; + GetBrandName(brandName); ++ if (brandName.EqualsLiteral("Minefield")) { ++ brandName.AssignLiteral("Firefox"); ++ } + + XClassHint *class_hint = XAllocClassHint(); + if (!class_hint) |