Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Oxygen for GTK
Commits
a1eb7a40
Commit
a1eb7a40
authored
Dec 14, 2011
by
Hugo Pereira Da Costa
Browse files
added komodo related patch from marky+bugs.kde@activestate.com
(thanks !) CCBUG: 288918
parent
e90bbce0
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/oxygenapplicationname.cpp
View file @
a1eb7a40
...
...
@@ -55,7 +55,6 @@ namespace Oxygen
_name
=
Unknown
;
if
(
pidAppName
==
"opera"
)
_name
=
Opera
;
else
if
(
pidAppName
.
find
(
"komodo"
)
!=
std
::
string
::
npos
)
_name
=
Komodo
;
else
if
(
gtkAppName
==
"eclipse"
||
gtkAppName
==
"Eclipse"
)
_name
=
Eclipse
;
else
if
(
pidAppName
==
"java"
)
{
...
...
@@ -81,6 +80,7 @@ namespace Oxygen
"icecat"
,
"icedove"
,
"xulrunner"
,
"komodo"
,
""
};
...
...
@@ -120,7 +120,6 @@ namespace Oxygen
// check application name
if
(
!
(
isKomodo
()
||
isXul
()
||
isAcrobat
()
||
isJavaSwt
()
||
...
...
@@ -177,7 +176,6 @@ namespace Oxygen
{
default:
case
Unknown
:
out
<<
"Unknown"
;
break
;
case
Komodo
:
out
<<
"Komodo"
;
break
;
case
Acrobat
:
out
<<
"Acrobat"
;
break
;
case
XUL
:
out
<<
"XUL (Mozilla)"
;
break
;
case
Gimp
:
out
<<
"Gimp"
;
break
;
...
...
src/oxygenapplicationname.h
View file @
a1eb7a40
...
...
@@ -45,7 +45,6 @@ namespace Oxygen
Java
,
JavaSwt
,
Eclipse
,
Komodo
};
//! stores application name and provides some utility functions
...
...
@@ -78,7 +77,6 @@ namespace Oxygen
//@{
bool
isAcrobat
(
void
)
const
{
return
_name
==
Acrobat
;
}
bool
isKomodo
(
void
)
const
{
return
_name
==
Komodo
;
}
bool
isXul
(
void
)
const
{
return
_name
==
XUL
;
}
bool
isGimp
(
void
)
const
{
return
_name
==
Gimp
;
}
bool
isOpenOffice
(
void
)
const
{
return
_name
==
OpenOffice
;
}
...
...
src/oxygentheme.cpp
View file @
a1eb7a40
...
...
@@ -47,19 +47,16 @@ void theme_init( GTypeModule* module )
Oxygen
::
RCStyle
::
registerType
(
module
);
Oxygen
::
StyleWrapper
::
registerType
(
module
);
// disable all animations for
komodo editor and
openoffice
// disable all animations for openoffice
if
(
Oxygen
::
Style
::
instance
().
settings
().
applicationName
().
isOpenOffice
()
||
Oxygen
::
Style
::
instance
().
settings
().
applicationName
().
isKomodo
()
)
Oxygen
::
Style
::
instance
().
settings
().
applicationName
().
isOpenOffice
()
)
{
Oxygen
::
Style
::
instance
().
animations
().
setEnabled
(
false
);
Oxygen
::
Style
::
instance
().
animations
().
setInnerShadowsEnabled
(
false
);
// re-enable combobox animations
Oxygen
::
Style
::
instance
().
animations
().
comboBoxEngine
().
setEnabled
(
true
);
}
// re-enable combobox animations
if
(
Oxygen
::
Style
::
instance
().
settings
().
applicationName
().
isOpenOffice
()
)
{
Oxygen
::
Style
::
instance
().
animations
().
comboBoxEngine
().
setEnabled
(
true
);
}
}
//_________________________________________________
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment