diff options
author | miwi <miwi@FreeBSD.org> | 2008-08-03 06:18:37 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-08-03 06:18:37 +0800 |
commit | b4e177f8ecf22311da3662d06f511f31606d9837 (patch) | |
tree | 9c0f376c35cb38dcca80bbb16df83f6127a354dd /net-im/qutim/files | |
parent | 8b6faf65a3984b13751e83d090d3d2954ff5c37b (diff) | |
download | freebsd-ports-gnome-b4e177f8ecf22311da3662d06f511f31606d9837.tar.gz freebsd-ports-gnome-b4e177f8ecf22311da3662d06f511f31606d9837.tar.zst freebsd-ports-gnome-b4e177f8ecf22311da3662d06f511f31606d9837.zip |
- Update to 0.1.1
PR: 126177
Submitted by: Ilya Bakulin <webmaster@kibab.com> (maintainer)
Diffstat (limited to 'net-im/qutim/files')
-rw-r--r-- | net-im/qutim/files/patch-protocol-oscar-icq-contactlist.cpp | 26 | ||||
-rw-r--r-- | net-im/qutim/files/patch-src-qutim.cpp | 16 |
2 files changed, 26 insertions, 16 deletions
diff --git a/net-im/qutim/files/patch-protocol-oscar-icq-contactlist.cpp b/net-im/qutim/files/patch-protocol-oscar-icq-contactlist.cpp new file mode 100644 index 000000000000..2d01ad9f62b5 --- /dev/null +++ b/net-im/qutim/files/patch-protocol-oscar-icq-contactlist.cpp @@ -0,0 +1,26 @@ +--- protocol/oscar/icq/contactlist.cpp.orig 2008-07-22 19:34:21.000000000 +0400 ++++ protocol/oscar/icq/contactlist.cpp 2008-07-22 20:14:46.000000000 +0400 +@@ -16,6 +16,7 @@ + //#include <QtGui> + #include <QTcpSocket> + #include <QNetworkProxy> ++#include <sys/time.h> + #include "treegroupitem.h" + #include "treebuddyitem.h" + #include "icqmessage.h" +@@ -1559,8 +1560,14 @@ + msg->message = codec->toUnicode(socket->read(length - 1)); + + QDateTime curTime = QDateTime::currentDateTime(); ++ ++ // Use POSIX-compatible way to get daylight saving correction ++ struct timeval tp; ++ struct timezone tzp; ++ gettimeofday(&tp, &tzp); ++ + int offset = (curTime.toLocalTime().time().hour() - curTime.toUTC().time().hour()) * 3600 + +- (curTime.toLocalTime().time().minute() - curTime.toUTC().time().minute()) * 60 - daylight * 3600; ++ (curTime.toLocalTime().time().minute() - curTime.toUTC().time().minute()) * 60 - tzp.tz_dsttime * 3600; + offlineDateTime = offlineDateTime.addSecs(offset); + + msg->date = offlineDateTime; diff --git a/net-im/qutim/files/patch-src-qutim.cpp b/net-im/qutim/files/patch-src-qutim.cpp deleted file mode 100644 index c37412795015..000000000000 --- a/net-im/qutim/files/patch-src-qutim.cpp +++ /dev/null @@ -1,16 +0,0 @@ -diff -ur qutIM/src/qutim.cpp qutIM.mine/src/qutim.cpp ---- src/qutim.cpp 2008-06-11 16:11:00.000000000 +0400 -+++ src/qutim.cpp 2008-06-15 21:49:52.000000000 +0400 -@@ -59,10 +59,10 @@ - offlineList = NULL; - setAttribute(Qt::WA_AlwaysShowToolTips, true); - setFocus(Qt::ActiveWindowFocusReason); -+ createActions(); -+ createTrayIcon(); - if ( QSystemTrayIcon::isSystemTrayAvailable() ) - { -- createActions(); -- createTrayIcon(); - trayIcon->show(); - connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), - this, SLOT(trayActivated(QSystemTrayIcon::ActivationReason))); |