Re: tdepowersave dcop interface not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



deloptes via tde-devels wrote:

> Hi,
> does someone know why tdepowersave is not working with dcop or kdcop
> 
> I am trying to change the scheme via dcop but get false and no change
> 
> $ dcop tdepowersave tdepowersaveIface currentScheme
> Powersave
> $ dcop tdepowersave tdepowersaveIface do_setScheme Presentation
> false
> $ dcop tdepowersave tdepowersaveIface currentScheme
> Powersave
> 
> but it is possible to change the scheme via the applet in the taskbar
> 
> thanks


Do you know why it is commented in the code? (line 2738 tdepowersave.cpp)

/*!
 * DCOP Interface funtion to set the current scheme.
 * \return boolean with the result of set the requested scheme
 * \retval false if failed (e.g. scheme is not in the list)
 * \retval true if scheme found and set
 * \param _scheme TQString with the scheme to set, scheme should be
 *                named as list from list_schemes()
 */
bool tdepowersave::do_setScheme( TQString /*_scheme*/ ) {
        kdDebugFuncIn(trace);

/*      int index;
        index = settings->schemes.findIndex(_scheme);

        if (index != -1) {
                do_setActiveScheme(index);
                kdDebugFuncOut(trace);
                return true;
        }
        else {
                kdDebugFuncOut(trace);
                return false;
        }
*/
        kdDebugFuncOut(trace);
        return false;
}

-- 
FCD6 3719 0FFB F1BF 38EA  4727 5348 5F1F DCFE BCB0

____________________________________________________
tde-devels mailing list -- devels@xxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devels-leave@xxxxxxxxxxxxxxxxxx
Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/devels@xxxxxxxxxxxxxxxxxx



[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux