Changeset 140 for smplayer/vendor/current/src/smplayer.cpp
- Timestamp:
- May 23, 2013, 5:06:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/smplayer.cpp
r137 r140 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 2Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 62 62 #endif 63 63 64 gui_to_use = "DefaultG ui";64 gui_to_use = "DefaultGUI"; 65 65 66 66 close_at_end = -1; // Not set … … 99 99 qDebug("SMPlayer::gui: changed working directory to app path"); 100 100 qDebug("SMPlayer::gui: current directory: %s", QDir::currentPath().toUtf8().data()); 101 102 #ifdef SKINS 103 if (gui_to_use == "SkinGUI") { 104 QString theme = pref->iconset; 105 if (theme.isEmpty()) theme = "Gonzo"; 106 QString theme_dir = Paths::themesPath() + "/" + theme; 107 qDebug("SMPlayer::gui: theme_dir: %s", theme_dir.toUtf8().constData()); 108 if (QDir(theme_dir).exists()) { 109 if (pref->iconset.isEmpty()) pref->iconset = theme; 110 } else { 111 qDebug("SMPlayer::gui: skin folder doesn't exist. Falling back to default gui."); 112 gui_to_use = "DefaultGUI"; 113 pref->iconset = ""; 114 pref->gui = gui_to_use; 115 } 116 } 117 #endif 101 118 102 119 main_window = createGUI(gui_to_use); … … 295 312 else 296 313 if (argument == "-mini" || argument == "-minigui") { 297 gui_to_use = "MiniG ui";314 gui_to_use = "MiniGUI"; 298 315 } 299 316 else 300 317 if (argument == "-mpcgui") { 301 gui_to_use = "MpcG ui";318 gui_to_use = "MpcGUI"; 302 319 } 303 320 else 304 321 if (argument == "-defaultgui") { 305 gui_to_use = "DefaultGui"; 306 } 322 gui_to_use = "DefaultGUI"; 323 } 324 #ifdef SKINS 325 else 326 if (argument == "-skingui") { 327 gui_to_use = "SkinGUI"; 328 } 329 #endif 307 330 else { 308 331 // File
Note:
See TracChangeset
for help on using the changeset viewer.