summaryrefslogtreecommitdiffstats
path: root/kde/patch/oxygen-gtk2/oxygen-gtk2_KDEBUG_341181.patch
blob: b6a1e557e8c4b1970e468211a5a43a4c1845b417 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
From b1ee5fb80c44c6c8a625333af1cfdc997d408805 Mon Sep 17 00:00:00 2001
From: Hugo Pereira Da Costa <hugo.pereira@free.fr>
Date: Sat, 18 Jul 2015 20:09:28 +0200
Subject: moved xul application names to dedicated header file, added a number
 of xul applications to prevent crash for these CCBUG: 341181

---
 src/oxygenapplicationname.cpp   | 18 ++-----------
 src/oxygenxulapplicationnames.h | 56 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+), 16 deletions(-)
 create mode 100644 src/oxygenxulapplicationnames.h

diff --git a/src/oxygenapplicationname.cpp b/src/oxygenapplicationname.cpp
index feb5a23..17c8a1a 100644
--- a/src/oxygenapplicationname.cpp
+++ b/src/oxygenapplicationname.cpp
@@ -25,6 +25,7 @@
 
 #include "oxygenapplicationname.h"
 #include "oxygengtkutils.h"
+#include "oxygenxulapplicationnames.h"
 #include "config.h"
 
 #include <cstdlib>
@@ -79,23 +80,8 @@ namespace Oxygen
             gtkAppName == "chromium" ||
             gtkAppName == "chromium-browser" ||
             gtkAppName == "google-chrome" ) _name = GoogleChrome;
-        else {
 
-            // tag all mozilla-like applications (XUL)
-            static const std::string XulAppNames[] =
-            {
-                "firefox",
-                "thunderbird",
-                "seamonkey",
-                "iceweasel",
-                "icecat",
-                "icedove",
-                "xulrunner",
-                "komodo",
-                "aurora",
-                "zotero",
-                ""
-            };
+        else {
 
             for( unsigned int index = 0; !XulAppNames[index].empty(); ++index )
             {
diff --git a/src/oxygenxulapplicationnames.h b/src/oxygenxulapplicationnames.h
new file mode 100644
index 0000000..252a1fc
--- /dev/null
+++ b/src/oxygenxulapplicationnames.h
@@ -0,0 +1,56 @@
+#ifndef oxygenxulapplicationname_h
+#define oxygenxulapplicationname_h
+/*
+* this file is part of the oxygen gtk engine
+* Copyright (c) 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr>
+*
+* inspired notably from kdelibs/kdeui/color/kcolorutils.h
+* Copyright (C) 2007 Matthew Woehlke <mw_triad@users.sourceforge.net>
+* Copyright (C) 2007 Thomas Zander <zander@kde.org>
+* Copyright (C) 2007 Zack Rusin <zack@kde.org>
+*
+* This  library is free  software; you can  redistribute it and/or
+* modify it  under  the terms  of the  GNU Lesser  General  Public
+* License  as published  by the Free  Software  Foundation; either
+* version 2 of the License, or( at your option ) any later version.
+*
+* This library is distributed  in the hope that it will be useful,
+* but  WITHOUT ANY WARRANTY; without even  the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License  along  with  this library;  if not,  write to  the Free
+* Software Foundation, Inc., 51  Franklin St, Fifth Floor, Boston,
+* MA 02110-1301, USA.
+*/
+
+#include <string>
+
+namespace Oxygen
+{
+
+    // tag all mozilla-like applications (XUL)
+    static const std::string XulAppNames[] =
+    {
+        "aurora",
+        "earlybird",
+        "icecat",
+        "icedove",
+        "iceweasel",
+        "instantbird",
+        "firefox",
+        "fossamail",
+        "komodo",
+        "newmoon",
+        "palemoon",
+        "seamonkey",
+        "thunderbird",
+        "xulrunner",
+        "zotero",
+        ""
+    };
+
+}
+
+#endif
-- 
cgit v0.11.2