[prev in list] [next in list] [prev in thread] [next in thread]
List: kopete-devel
Subject: [kopete-devel] Fix catching KDE_stop_screensaver
From: Krisztian Loki <krisztian.loki () freemail ! hu>
Date: 2007-11-18 0:56:15
Message-ID: freemail.20071018015615.3678 () fm04 ! freemail ! hu
[Download RAW message or body]
Hi All,
I found a bug in kopeteiface.cpp: it tries to connect
kdesktop's KDE_stop_screensaver DCOP signal to setActive()
but there is no setActive() function in KopeteIface. The
attached patch fixes this by introducing a setActive()
function and also fixes some typos.
Regards,
Krisztian
PS: I'm not on the list, so please CC me if you have questions.
Világbajnok árak! Váltson most olcsóbb KÖTELEZŐRE!
________________________________________________________
http://www.biztositas.hu/origo_aloldal/okgfb_rovat
["auto_away.patch" (APPLICATION/octet-stream)]
Index: kopete/kopeteiface.h
===================================================================
--- kopete/kopeteiface.h (revision 738114)
+++ kopete/kopeteiface.h (working copy)
@@ -135,16 +135,22 @@
void setAway( const QString &msg, bool away );
/**
- * set Available all accountes
+ * set Available all accounts
*/
void setAvailable();
+
/**
- * set all account away using the auto away funciton.
+ * set all account away using the auto away function.
* accounts will return online if activity is detected again
*/
void setAutoAway();
/**
+ * set all accounts online that were set away using auto away
+ */
+ void setActive();
+
+ /**
* set the global nickname if global identity is enabled.
* @param nickname the new global nickname
*/
Index: kopete/kopeteiface.cpp
===================================================================
--- kopete/kopeteiface.cpp (revision 738114)
+++ kopete/kopeteiface.cpp (working copy)
@@ -48,7 +48,7 @@
disconnectDCOPSignal("kdesktop", "KScreensaverIface",
"KDE_start_screensaver()", "setAutoAway()");
}
- // FIXME: AFAICT, this never seems to fire.
+
connectDCOPSignal("kdesktop", "KScreensaverIface",
"KDE_stop_screensaver()", "setActive()", false);
}
@@ -295,6 +295,11 @@
Kopete::Away::getInstance()->setAutoAway();
}
+void KopeteIface::setActive()
+{
+ Kopete::Away::getInstance()->setActive();
+}
+
void KopeteIface::setGlobalNickname( const QString &nickname )
{
if( Kopete::Config::enableGlobalIdentity() )
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic