Ignore:
Timestamp:
May 23, 2013, 5:06:17 PM (12 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 0.8.5'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/smplayer.cpp

    r137 r140  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    6262#endif
    6363
    64         gui_to_use = "DefaultGui";
     64        gui_to_use = "DefaultGUI";
    6565
    6666        close_at_end = -1; // Not set
     
    9999                qDebug("SMPlayer::gui: changed working directory to app path");
    100100                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
    101118
    102119                main_window = createGUI(gui_to_use);
     
    295312                else
    296313                if (argument == "-mini" || argument == "-minigui") {
    297                         gui_to_use = "MiniGui";
     314                        gui_to_use = "MiniGUI";
    298315                }
    299316                else
    300317                if (argument == "-mpcgui") {
    301                         gui_to_use = "MpcGui";
     318                        gui_to_use = "MpcGUI";
    302319                }
    303320                else
    304321                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
    307330                else {
    308331                        // File
Note: See TracChangeset for help on using the changeset viewer.