Commit a1eb7a40 authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

added komodo related patch from marky+bugs.kde@activestate.com

(thanks !)

CCBUG: 288918
parent e90bbce0
......@@ -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;
......
......@@ -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; }
......
......@@ -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 ); }
}
//_________________________________________________
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment