[packages/psi] - 0.15 rc1; all these random/weird patches dropped (use 0.14 with these); for 0.14 create PSI_0_14 b

arekm arekm at pld-linux.org
Wed Aug 29 20:26:38 CEST 2012


commit d97b149c2946c1d727f3e9d2edde90ca31a4fe09
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Aug 29 20:26:35 2012 +0200

    - 0.15 rc1; all these random/weird patches dropped (use 0.14 with these); for 0.14 create PSI_0_14 branch

 psi-appearance-mod.patch              | 1232 ---------------------------------
 psi-customos.patch                    |   27 -
 psi-desktop.patch                     |   18 -
 psi-empty_group-fix.patch             |   23 -
 psi-fix_configure_for_ksh.patch       |   32 -
 psi-home_etc.patch                    |   22 -
 psi-icon_buttons_big_return-mod.patch |   15 -
 psi-machekku-avatars_in_tooltip.patch |  100 ---
 psi-no_online_offline_status.patch    |   16 -
 psi.spec                              |   30 +-
 10 files changed, 6 insertions(+), 1509 deletions(-)
---
diff --git a/psi.spec b/psi.spec
index 28a44f7..3c8431b 100644
--- a/psi.spec
+++ b/psi.spec
@@ -2,23 +2,15 @@ Summary:	PSI - Jabber client
 Summary(de.UTF-8):	PSI - ein Instant Messaging Client-Programm für Jabber
 Summary(pl.UTF-8):	PSI - klient Jabbera
 Name:		psi
-Version:	0.14
-Release:	8
+Version:	0.15
+Release:	0.1
 License:	GPL v2
 Group:		Applications/Communications
-Source0:	http://downloads.sourceforge.net/psi/%{name}-%{version}.tar.bz2
-# Source0-md5:	9d7dcce3bcab53b741a712199bd986be
+# Source0:	http://downloads.sourceforge.net/psi/%{name}-%{version}.tar.bz2
+Source0:	http://downloads.sourceforge.net/project/psi/Development%20Snapshots/0.15-rc1/psi-0.15-rc1.tar.bz2
+# Source0-md5:	b9320c2bc0ab980bf0db5bca278c6ab3
 Source1:	%{name}-lang.tar.bz2
 # Source1-md5:	cf6d82f53f1f1600a49bb61ba81151bf
-Patch0:		%{name}-fix_configure_for_ksh.patch
-Patch1:		%{name}-desktop.patch
-Patch2:		%{name}-home_etc.patch
-Patch3:		%{name}-customos.patch
-Patch4:		%{name}-no_online_offline_status.patch
-Patch5:		%{name}-icon_buttons_big_return-mod.patch
-Patch6:		%{name}-empty_group-fix.patch
-# http://machekku.uaznia.net/xmpp/psi/patches/
-Patch7:		%{name}-machekku-avatars_in_tooltip.patch
 URL:		http://psi-im.org/
 BuildRequires:	Qt3Support-devel
 BuildRequires:	QtCore-devel
@@ -61,17 +53,7 @@ wprowadzona zmiana, która powoduje że certyfikaty SSL są poszukiwane w
 katalogu $DATADIR/certs lub ~/.psi/certs.
 
 %prep
-%setup -q -a 1
-%patch0 -p0
-%patch1 -p1
-%{?with_home_etc:%patch2 -p1}
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-
-rm -rf third-party
+%setup -q -a 1 -n %{name}-%{version}-rc1
 
 %build
 ./configure \
diff --git a/psi-appearance-mod.patch b/psi-appearance-mod.patch
deleted file mode 100644
index 10334f9..0000000
--- a/psi-appearance-mod.patch
+++ /dev/null
@@ -1,1232 +0,0 @@
-diff -urN psi-0.12.orig/options/default.xml psi-0.12/options/default.xml
---- psi-0.12.orig/options/default.xml	2008-05-13 03:57:35.000000000 +0200
-+++ psi-0.12/options/default.xml	2008-08-09 22:01:13.000000000 +0200
-@@ -214,6 +214,12 @@
- 			<last-used-save-path type="QString"></last-used-save-path>
- 			<look>
- 				<colors>
-+					<chat>
-+						<incoming-messages-color type="QColor" >#0000ff</incoming-messages-color>
-+						<outgoing-messages-color type="QColor" >#ff0000</outgoing-messages-color>
-+						<spooled-messages-color type="QColor" >#008000</spooled-messages-color>
-+						<system-messages-color type="QColor" >#00a000</system-messages-color>
-+					</chat>
- 					<contactlist>
- 						<background type="QColor">#ffffff</background>
- 						<grouping>
-@@ -232,6 +238,12 @@
- 						</status>
- 						<status-messages type="QColor">#808080</status-messages>
- 					</contactlist>
-+					<groupchat>
-+						<alert-messages-color type="QColor" >#ff0000</alert-messages-color>
-+						<default-nick-color type="QColor" >#000000</default-nick-color>
-+						<spooled-messages-color type="QColor" >#008000</spooled-messages-color>
-+						<system-messages-color type="QColor" >#00a000</system-messages-color>
-+					</groupchat>
- 					<muc>
- 						<nick-colors type="QStringList" >
- 							<item>Blue</item>
-diff -urN psi-0.12.orig/src/groupchatdlg.cpp psi-0.12/src/groupchatdlg.cpp
---- psi-0.12.orig/src/groupchatdlg.cpp	2008-03-19 21:59:10.000000000 +0100
-+++ psi-0.12/src/groupchatdlg.cpp	2008-08-09 18:34:42.000000000 +0200
-@@ -1207,7 +1207,7 @@
- 	bool doInsert = t.date() != lastMsgTime_.date();
- 	lastMsgTime_ = t;
- 	if (doInsert) {
--		QString color = "#00A000";
-+		QString color = PsiOptions::instance()->getOption("options.ui.look.colors.groupchat.system-messages-color").toString();
- 		ui_.log->appendText(QString("<font color=\"%1\">*** %2</font>").arg(color).arg(t.date().toString(Qt::ISODate)));
- 	}
- }
-@@ -1226,7 +1226,7 @@
- 
- 	updateLastMsgTime(time);
- 	QString timestr = ui_.log->formatTimeStamp(time);
--	ui_.log->appendText(QString("<font color=\"#00A000\">[%1]").arg(timestr) + QString(" *** %1</font>").arg(Qt::escape(str)));
-+	ui_.log->appendText(QString("<font color=\"" + PsiOptions::instance()->getOption("options.ui.look.colors.groupchat.system-messages-color").toString() +  "\">[%1]").arg(timestr) + QString(" *** %1</font>").arg(Qt::escape(str)));
- 
- 	if(alert)
- 		doAlert();
-@@ -1249,7 +1249,7 @@
- 	QStringList nickColors = PsiOptions::instance()->getOption("options.ui.look.colors.muc.nick-colors").toStringList();
- 	
- 	if(!PsiOptions::instance()->getOption("options.ui.muc.use-nick-coloring").toBool() || nickColors.empty()) {
--		return "#000000";
-+		return PsiOptions::instance()->getOption("options.ui.look.colors.groupchat.default-nick-color").toString();
- 	}
- 	else if(sender == -1 || nickColors.size() == 1) {
- 		return nickColors[nickColors.size()-1];
-@@ -1280,12 +1280,12 @@
- 	nickcolor = getNickColor(who);
- 	textcolor = ui_.log->palette().active().text().name();
- 	if(alert) {
--		textcolor = "#FF0000";
-+		textcolor = PsiOptions::instance()->getOption("options.ui.look.colors.groupchat.alert-messages-color").toString();
- 		alerttagso = "<b>";
- 		alerttagsc = "</b>";
- 	}
- 	if(m.spooled())
--		nickcolor = "#008000"; //color = "#008000";
-+		nickcolor = PsiOptions::instance()->getOption("options.ui.look.colors.groupchat.spooled-messages-color").toString();
- 
- 	QString timestr = ui_.log->formatTimeStamp(m.timeStamp());
- 
-diff -urN psi-0.12.orig/src/options/opt_appearance.cpp psi-0.12/src/options/opt_appearance.cpp
---- psi-0.12.orig/src/options/opt_appearance.cpp	2008-01-12 03:48:36.000000000 +0100
-+++ psi-0.12/src/options/opt_appearance.cpp	2008-08-09 21:09:33.000000000 +0200
-@@ -17,6 +17,7 @@
- #include <qlineedit.h>
- 
- #include "ui_opt_appearance.h"
-+#include "ui_opt_appearance_fonts.h"
- #include "ui_opt_appearance_misc.h"
- #include "psioptions.h"
- 
-@@ -27,6 +28,12 @@
- 	OptAppearanceUI() : QWidget() { setupUi(this); }
- };
- 
-+class OptAppearanceFontsUI : public QWidget, public Ui::OptAppearanceFonts
-+{
-+public:
-+	OptAppearanceFontsUI() : QWidget() { setupUi(this); }
-+};
-+
- class OptAppearanceMiscUI : public QWidget, public Ui::OptAppearanceMisc
- {
- public:
-@@ -72,6 +79,7 @@
- OptionsTabAppearance::OptionsTabAppearance(QObject *parent) : MetaOptionsTab(parent, "appearance", "", tr("Appearance"), tr("Psi's Appearance"), "psi/appearance")
- {    
- 	addTab( new OptionsTabAppearanceGeneral(this) );
-+	addTab( new OptionsTabAppearanceFonts(this) );
- 	addTab( new OptionsTabIconsetEmoticons(this) );
- 	addTab( new OptionsTabIconsetRoster(this) );
- 	addTab( new OptionsTabIconsetSystem(this) );
-@@ -135,21 +143,18 @@
- }
- 
- //----------------------------------------------------------------------------
--// OptionsTabAppearanceGeneral: Fonts & Colours
-+// OptionsTabAppearanceGeneral: Colours
- //----------------------------------------------------------------------------
- 
- OptionsTabAppearanceGeneral::OptionsTabAppearanceGeneral(QObject *parent)
--: OptionsTab(parent, "appearance_general", "", tr("Fonts && Colors"), tr("Fonts && Color Settings"))
-+: OptionsTab(parent, "appearance_general", "", tr("Colors"), tr("Color Settings"))
- {
- 	w = 0;
--	bg_font = 0;
- 	bg_color = 0;
- }
- 
- OptionsTabAppearanceGeneral::~OptionsTabAppearanceGeneral()
- {
--	if ( bg_font )
--		delete bg_font;
- 	if ( bg_color )
- 		delete bg_color;
- }
-@@ -175,33 +180,6 @@
- 	w = new OptAppearanceUI();
- 	OptAppearanceUI *d = (OptAppearanceUI *)w;
- 
--	le_font[0] = d->le_fRoster;
--	le_font[1] = d->le_fMessage;
--	le_font[2] = d->le_fChat;
--	le_font[3] = d->le_fPopup;
--
--	bg_font = new QButtonGroup;
--	bg_font->insert(d->pb_fRoster);
--	bg_font->insert(d->pb_fMessage);
--	bg_font->insert(d->pb_fChat);
--	bg_font->insert(d->pb_fPopup);
--	connect(bg_font, SIGNAL(buttonClicked(QAbstractButton*)), SLOT(chooseFont(QAbstractButton*)));
--
--	QWhatsThis::add(le_font[0],
--		tr("Specifies the font style for the main window."));
--	QWhatsThis::add(le_font[1],
--		tr("Specifies the font style for message windows."));
--	QWhatsThis::add(le_font[2],
--		tr("Specifies the font style for chat windows."));
--	QWhatsThis::add(le_font[3],
--		tr("Specifies the font style for popup windows."));
--	QWhatsThis::add(d->pb_fRoster,
--		tr("Selects a font for the roster window using the font selection dialog."));
--	QWhatsThis::add(d->pb_fMessage,
--		tr("Selects a font for message windows using the font selection dialog."));
--	QWhatsThis::add(d->pb_fChat,
--		tr("Selects a font for chat windows using the font selection dialog."));
--
- 	bg_color = new QButtonGroup;
- 	bg_color->insert(d->pb_cOnline);
- 	bg_color->insert(d->pb_cOffline);
-@@ -214,6 +192,15 @@
- 	bg_color->insert(d->pb_cListBack);
- 	bg_color->insert(d->pb_cAnimFront);
- 	bg_color->insert(d->pb_cAnimBack);
-+	bg_color->insert(d->pb_cChatSys);
-+	bg_color->insert(d->pb_cChatSpool);
-+	bg_color->insert(d->pb_cChatTo);
-+	bg_color->insert(d->pb_cChatFrom);
-+	bg_color->insert(d->pb_cGChatAlert);
-+	bg_color->insert(d->pb_cGChatSys);
-+	bg_color->insert(d->pb_cGChatSpool);
-+	bg_color->insert(d->pb_cGChatNick);
-+
- 	bg_color->insert(d->pb_cStatus);
- 	connect(bg_color, SIGNAL(buttonClicked(QAbstractButton*)), SLOT(chooseColor(QAbstractButton*)));
- 
-@@ -238,6 +225,22 @@
- 		tr("Specifies the foreground animation color for nicks."));
- 	QWhatsThis::add(d->pb_cAnimBack,
- 		tr("Specifies the background animation color for nicks."));
-+	QWhatsThis::add(d->pb_cChatSys,
-+		tr("Specifies the color for system chat messages."));
-+	QWhatsThis::add(d->pb_cChatSpool,
-+		tr("Specifies the color for spooled chat messages."));
-+	QWhatsThis::add(d->pb_cChatTo,
-+		tr("Specifies the nick color for sent chat messages."));
-+	QWhatsThis::add(d->pb_cChatFrom,
-+		tr("Specifies the nick color for recieved chat messages."));
-+	QWhatsThis::add(d->pb_cGChatAlert,
-+		tr("Specifies the color for alert groupchat messages."));
-+	QWhatsThis::add(d->pb_cGChatSys,
-+		tr("Specifies the color for system groupchat messages."));
-+	QWhatsThis::add(d->pb_cGChatSpool,
-+		tr("Specifies the color for spooled groupchat messages."));
-+	QWhatsThis::add(d->pb_cGChatNick,
-+		tr("Specifies the default nick color for groupchat messages."));
- 
- 	// Avatars
- 	//QWhatsThis::add(d->ck_avatarsChatdlg,
-@@ -265,11 +268,6 @@
- 	OptAppearanceUI *d = (OptAppearanceUI *)w;
- 	//LEGOPTS.avatarsChatdlgEnabled = d->ck_avatarsChatdlg->isChecked(); // Avatars
- 
--	PsiOptions::instance()->setOption("options.ui.look.font.contactlist", d->le_fRoster->fontName());
--	PsiOptions::instance()->setOption("options.ui.look.font.message", d->le_fMessage->fontName());
--	PsiOptions::instance()->setOption("options.ui.look.font.chat", d->le_fChat->fontName());
--	PsiOptions::instance()->setOption("options.ui.look.font.passive-popup", d->le_fPopup->fontName());
--
- 	PsiOptions::instance()->setOption("options.ui.look.colors.contactlist.status.online", getColor(d->pb_cOnline));
- 	PsiOptions::instance()->setOption("options.ui.look.colors.contactlist.status.offline", getColor(d->pb_cOffline));
- 	PsiOptions::instance()->setOption("options.ui.look.colors.contactlist.status.away", getColor(d->pb_cAway));
-@@ -281,6 +279,14 @@
- 	PsiOptions::instance()->setOption("options.ui.look.colors.contactlist.background", getColor(d->pb_cListBack));
- 	PsiOptions::instance()->setOption("options.ui.look.contactlist.status-change-animation.color1", getColor(d->pb_cAnimFront));
- 	PsiOptions::instance()->setOption("options.ui.look.contactlist.status-change-animation.color2", getColor(d->pb_cAnimBack));
-+	PsiOptions::instance()->setOption("options.ui.look.colors.chat.system-messages-color", getColor(d->pb_cChatSys));
-+	PsiOptions::instance()->setOption("options.ui.look.colors.chat.spooled-messages-color", getColor(d->pb_cChatSpool));
-+	PsiOptions::instance()->setOption("options.ui.look.colors.chat.outgoing-messages-color", getColor(d->pb_cChatTo));
-+	PsiOptions::instance()->setOption("options.ui.look.colors.chat.incoming-messages-color", getColor(d->pb_cChatFrom));
-+	PsiOptions::instance()->setOption("options.ui.look.colors.groupchat.alert-messages-color", getColor(d->pb_cGChatAlert));
-+	PsiOptions::instance()->setOption("options.ui.look.colors.groupchat.system-messages-color", getColor(d->pb_cGChatSys));
-+	PsiOptions::instance()->setOption("options.ui.look.colors.groupchat.spooled-messages-color", getColor(d->pb_cGChatSpool));
-+	PsiOptions::instance()->setOption("options.ui.look.colors.groupchat.default-nick-color", getColor(d->pb_cGChatNick));
- 	PsiOptions::instance()->setOption("options.ui.look.colors.contactlist.status-messages", getColor(d->pb_cStatus));
- }
- 
-@@ -298,11 +304,6 @@
- 	OptAppearanceUI *d = (OptAppearanceUI *)w;
- 	//d->ck_avatarsChatdlg->setChecked( LEGOPTS.avatarsChatdlgEnabled ); // Avatars
- 
--	d->le_fRoster->setFont(PsiOptions::instance()->getOption("options.ui.look.font.contactlist").toString());
--	d->le_fMessage->setFont(PsiOptions::instance()->getOption("options.ui.look.font.message").toString());
--	d->le_fChat->setFont(PsiOptions::instance()->getOption("options.ui.look.font.chat").toString());
--	d->le_fPopup->setFont(PsiOptions::instance()->getOption("options.ui.look.font.passive-popup").toString());
--
- 	restoreColor(d->pb_cOnline, PsiOptions::instance()->getOption("options.ui.look.colors.contactlist.status.online").value<QColor>());
- 	restoreColor(d->pb_cOffline, PsiOptions::instance()->getOption("options.ui.look.colors.contactlist.status.offline").value<QColor>());
- 	restoreColor(d->pb_cAway, PsiOptions::instance()->getOption("options.ui.look.colors.contactlist.status.away").value<QColor>());
-@@ -314,6 +315,14 @@
- 	restoreColor(d->pb_cListBack, PsiOptions::instance()->getOption("options.ui.look.colors.contactlist.background").value<QColor>());
- 	restoreColor(d->pb_cAnimFront, PsiOptions::instance()->getOption("options.ui.look.contactlist.status-change-animation.color1").value<QColor>());
- 	restoreColor(d->pb_cAnimBack, PsiOptions::instance()->getOption("options.ui.look.contactlist.status-change-animation.color2").value<QColor>());
-+	restoreColor(d->pb_cChatSys, PsiOptions::instance()->getOption("options.ui.look.colors.chat.system-messages-color").value<QColor>());
-+	restoreColor(d->pb_cChatSpool, PsiOptions::instance()->getOption("options.ui.look.colors.chat.spooled-messages-color").value<QColor>());
-+	restoreColor(d->pb_cChatTo, PsiOptions::instance()->getOption("options.ui.look.colors.chat.outgoing-messages-color").value<QColor>());
-+	restoreColor(d->pb_cChatFrom, PsiOptions::instance()->getOption("options.ui.look.colors.chat.incoming-messages-color").value<QColor>());
-+	restoreColor(d->pb_cGChatAlert, PsiOptions::instance()->getOption("options.ui.look.colors.groupchat.alert-messages-color").value<QColor>());
-+	restoreColor(d->pb_cGChatSys, PsiOptions::instance()->getOption("options.ui.look.colors.groupchat.system-messages-color").value<QColor>());
-+	restoreColor(d->pb_cGChatSpool, PsiOptions::instance()->getOption("options.ui.look.colors.groupchat.spooled-messages-color").value<QColor>());
-+	restoreColor(d->pb_cGChatNick, PsiOptions::instance()->getOption("options.ui.look.colors.groupchat.default-nick-color").value<QColor>());
- 	restoreColor(d->pb_cStatus, PsiOptions::instance()->getOption("options.ui.look.colors.contactlist.status-messages").value<QColor>());
- }
- 
-@@ -331,26 +331,6 @@
- 	parentWidget = parentDialog;
- }
- 
--void OptionsTabAppearanceGeneral::chooseFont(QAbstractButton* button)
--{
--	bool ok;
--	QFont font;
--	int x = (bg_font->buttons()).indexOf(button);
--	font.fromString( le_font[x]->fontName() );
--
--	// ensure we don't use the new native font dialog on mac with Qt 4.5,
--	//   since it was broken last we checked (qt task #252000)
--#if QT_VERSION >= 0x040500
--	QString fnt = QFontDialog::getFont(&ok, font, parentWidget, QString(), QFontDialog::DontUseNativeDialog).toString();
--#else
--	QString fnt = QFontDialog::getFont(&ok, font, parentWidget).toString();
--#endif
--	le_font[x]->setFont(fnt);
--
--	if(ok)
--		emit dataChanged();
--}
--
- void OptionsTabAppearanceGeneral::chooseColor(QAbstractButton* button)
- {
- 	QColor c;
-@@ -352,3 +347,106 @@
- 		emit dataChanged();
- 	}
- }
-+
-+//----------------------------------------------------------------------------
-+// OptionsTabAppearanceFonts: Fonts
-+//----------------------------------------------------------------------------
-+
-+OptionsTabAppearanceFonts::OptionsTabAppearanceFonts(QObject *parent)
-+: OptionsTab(parent, "appearance_general", "", tr("Fonts"), tr("Fonts"))
-+{
-+	w = 0;
-+	bg_font = 0;
-+}
-+
-+OptionsTabAppearanceFonts::~OptionsTabAppearanceFonts()
-+{
-+	if ( bg_font )
-+		delete bg_font;
-+}
-+
-+QWidget *OptionsTabAppearanceFonts::widget()
-+{
-+	if ( w )
-+		return 0;
-+
-+	w = new OptAppearanceFontsUI();
-+	OptAppearanceFontsUI *d = (OptAppearanceFontsUI *)w;
-+
-+	le_font[0] = d->le_fRoster;
-+	le_font[1] = d->le_fMessage;
-+	le_font[2] = d->le_fChat;
-+	le_font[3] = d->le_fPopup;
-+
-+	bg_font = new QButtonGroup;
-+	bg_font->insert(d->pb_fRoster);
-+	bg_font->insert(d->pb_fMessage);
-+	bg_font->insert(d->pb_fChat);
-+	bg_font->insert(d->pb_fPopup);
-+	connect(bg_font, SIGNAL(buttonClicked(QAbstractButton*)), SLOT(chooseFont(QAbstractButton*)));
-+
-+	QWhatsThis::add(le_font[0],
-+		tr("Specifies the font style for the main window."));
-+	QWhatsThis::add(le_font[1],
-+		tr("Specifies the font style for message windows."));
-+	QWhatsThis::add(le_font[2],
-+		tr("Specifies the font style for chat windows."));
-+	QWhatsThis::add(le_font[3],
-+		tr("Specifies the font style for popup windows."));
-+	QWhatsThis::add(d->pb_fRoster,
-+		tr("Selects a font for the roster window using the font selection dialog."));
-+	QWhatsThis::add(d->pb_fMessage,
-+		tr("Selects a font for message windows using the font selection dialog."));
-+	QWhatsThis::add(d->pb_fChat,
-+		tr("Selects a font for chat windows using the font selection dialog."));
-+	
-+	return w;
-+}
-+
-+
-+void OptionsTabAppearanceFonts::applyOptions()
-+{
-+	if ( !w )
-+		return;
-+
-+	OptAppearanceFontsUI *d = (OptAppearanceFontsUI *)w;
-+	//LEGOPTS.avatarsChatdlgEnabled = d->ck_avatarsChatdlg->isChecked(); // Avatars
-+
-+	PsiOptions::instance()->setOption("options.ui.look.font.contactlist", d->le_fRoster->fontName());
-+	PsiOptions::instance()->setOption("options.ui.look.font.message", d->le_fMessage->fontName());
-+	PsiOptions::instance()->setOption("options.ui.look.font.chat", d->le_fChat->fontName());
-+	PsiOptions::instance()->setOption("options.ui.look.font.passive-popup", d->le_fPopup->fontName());
-+}
-+
-+void OptionsTabAppearanceFonts::restoreOptions()
-+{
-+	if ( !w )
-+		return;
-+
-+	OptAppearanceFontsUI *d = (OptAppearanceFontsUI *)w;
-+	//d->ck_avatarsChatdlg->setChecked( LEGOPTS.avatarsChatdlgEnabled ); // Avatars
-+
-+	d->le_fRoster->setFont(PsiOptions::instance()->getOption("options.ui.look.font.contactlist").toString());
-+	d->le_fMessage->setFont(PsiOptions::instance()->getOption("options.ui.look.font.message").toString());
-+	d->le_fChat->setFont(PsiOptions::instance()->getOption("options.ui.look.font.chat").toString());
-+	d->le_fPopup->setFont(PsiOptions::instance()->getOption("options.ui.look.font.passive-popup").toString());
-+}
-+
-+void OptionsTabAppearanceFonts::setData(PsiCon *, QWidget *parentDialog)
-+{
-+	parentWidget = parentDialog;
-+}
-+
-+void OptionsTabAppearanceFonts::chooseFont(QAbstractButton* button)
-+{
-+	bool ok;
-+	QFont font;
-+	int x = (bg_font->buttons()).indexOf(button);
-+	font.fromString( le_font[x]->fontName() );
-+
-+	QString fnt = QFontDialog::getFont(&ok, font, parentWidget).toString();
-+	le_font[x]->setFont(fnt);
-+
-+	if(ok)
-+		emit dataChanged();
-+}
-diff -urN psi-0.12.orig/src/options/opt_appearance_fonts.ui psi-0.12/src/options/opt_appearance_fonts.ui
---- psi-0.12.orig/src/options/opt_appearance_fonts.ui	1970-01-01 01:00:00.000000000 +0100
-+++ psi-0.12/src/options/opt_appearance_fonts.ui	2008-08-09 18:34:42.000000000 +0200
-@@ -0,0 +1,142 @@
-+<ui version="4.0" >
-+ <author></author>
-+ <comment></comment>
-+ <exportmacro></exportmacro>
-+ <class>OptAppearanceFonts</class>
-+ <widget class="QWidget" name="OptAppearanceFonts" >
-+  <property name="geometry" >
-+   <rect>
-+    <x>0</x>
-+    <y>0</y>
-+    <width>402</width>
-+    <height>184</height>
-+   </rect>
-+  </property>
-+  <property name="windowTitle" >
-+   <string>OptAppearanceFontsUI</string>
-+  </property>
-+  <layout class="QVBoxLayout" >
-+   <property name="margin" >
-+    <number>9</number>
-+   </property>
-+   <property name="spacing" >
-+    <number>6</number>
-+   </property>
-+   <item>
-+    <widget class="QGroupBox" name="groupBox12" >
-+     <property name="title" >
-+      <string>Fonts</string>
-+     </property>
-+     <layout class="QGridLayout" >
-+      <property name="margin" >
-+       <number>8</number>
-+      </property>
-+      <property name="spacing" >
-+       <number>6</number>
-+      </property>
-+      <item row="0" column="0" >
-+       <widget class="QLabel" name="tl_fRoster" >
-+        <property name="text" >
-+         <string>Roster</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="1" column="0" >
-+       <widget class="QLabel" name="tl_fMessage" >
-+        <property name="text" >
-+         <string>Message</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="2" column="0" >
-+       <widget class="QLabel" name="tl_fChat" >
-+        <property name="enabled" >
-+         <bool>true</bool>
-+        </property>
-+        <property name="text" >
-+         <string>Chat</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="3" column="0" >
-+       <widget class="QLabel" name="tl_fPopup" >
-+        <property name="text" >
-+         <string>Popup</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="0" column="1" colspan="3" >
-+       <widget class="FontLabel" name="le_fRoster" />
-+      </item>
-+      <item row="1" column="1" colspan="3" >
-+       <widget class="FontLabel" name="le_fMessage" />
-+      </item>
-+      <item row="2" column="1" colspan="3" >
-+       <widget class="FontLabel" name="le_fChat" />
-+      </item>
-+      <item row="3" column="1" colspan="3" >
-+       <widget class="FontLabel" name="le_fPopup" />
-+      </item>
-+      <item row="0" column="4" >
-+       <widget class="QPushButton" name="pb_fRoster" >
-+        <property name="text" >
-+         <string>Choose</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="1" column="4" >
-+       <widget class="QPushButton" name="pb_fMessage" >
-+        <property name="text" >
-+         <string>Choose</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="2" column="4" >
-+       <widget class="QPushButton" name="pb_fChat" >
-+        <property name="enabled" >
-+         <bool>true</bool>
-+        </property>
-+        <property name="text" >
-+         <string>Choose</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="3" column="4" >
-+       <widget class="QPushButton" name="pb_fPopup" >
-+        <property name="enabled" >
-+         <bool>true</bool>
-+        </property>
-+        <property name="text" >
-+         <string>Choose</string>
-+        </property>
-+       </widget>
-+      </item>
-+     </layout>
-+    </widget>
-+   </item>
-+  </layout>
-+ </widget>
-+ <layoutdefault spacing="6" margin="11" />
-+ <pixmapfunction></pixmapfunction>
-+ <customwidgets>
-+  <customwidget>
-+   <class>FontLabel</class>
-+   <extends></extends>
-+   <header>opt_appearance.h</header>
-+   <container>0</container>
-+   <pixmap></pixmap>
-+  </customwidget>
-+ </customwidgets>
-+ <tabstops>
-+  <tabstop>le_fRoster</tabstop>
-+  <tabstop>pb_fRoster</tabstop>
-+  <tabstop>le_fMessage</tabstop>
-+  <tabstop>pb_fMessage</tabstop>
-+  <tabstop>le_fChat</tabstop>
-+  <tabstop>pb_fChat</tabstop>
-+  <tabstop>le_fPopup</tabstop>
-+  <tabstop>pb_fPopup</tabstop>
-+ </tabstops>
-+ <resources/>
-+ <connections/>
-+</ui>
-diff -urN psi-0.12.orig/src/options/opt_appearance.h psi-0.12/src/options/opt_appearance.h
---- psi-0.12.orig/src/options/opt_appearance.h	2008-01-12 01:45:25.000000000 +0100
-+++ psi-0.12/src/options/opt_appearance.h	2008-08-09 18:34:42.000000000 +0200
-@@ -65,11 +65,29 @@
- private slots:
- 	void setData(PsiCon *, QWidget *);
- 	void chooseColor(QAbstractButton* button);
--	void chooseFont(QAbstractButton* button);
- 
- private:
- 	QWidget *w, *parentWidget;
- 	QButtonGroup *bg_color;
-+};
-+
-+class OptionsTabAppearanceFonts : public OptionsTab
-+{
-+	Q_OBJECT
-+public:
-+	OptionsTabAppearanceFonts(QObject *parent);
-+	~OptionsTabAppearanceFonts();
-+
-+	QWidget *widget();
-+	void applyOptions();
-+	void restoreOptions();
-+
-+private slots:
-+	void setData(PsiCon *, QWidget *);
-+	void chooseFont(QAbstractButton* button);
-+
-+private:
-+	QWidget *w, *parentWidget;
- 	FontLabel *le_font[4];
- 	QButtonGroup *bg_font;
- };
-diff -urN psi-0.12.orig/src/options/opt_appearance.ui psi-0.12/src/options/opt_appearance.ui
---- psi-0.12.orig/src/options/opt_appearance.ui	2007-05-07 20:00:07.000000000 +0200
-+++ psi-0.12/src/options/opt_appearance.ui	2008-08-09 18:34:42.000000000 +0200
-@@ -8,8 +8,8 @@
-    <rect>
-     <x>0</x>
-     <y>0</y>
--    <width>402</width>
--    <height>333</height>
-+    <width>474</width>
-+    <height>310</height>
-    </rect>
-   </property>
-   <property name="windowTitle" >
-@@ -34,63 +34,99 @@
-       <property name="spacing" >
-        <number>6</number>
-       </property>
--      <item row="0" column="3" >
-+      <item row="0" column="0" >
-+       <widget class="QLabel" name="tl_cProfileFore" >
-+        <property name="text" >
-+         <string>Account heading foreground:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="1" column="0" >
-+       <widget class="QLabel" name="tl_cProfileBack" >
-+        <property name="text" >
-+         <string>Account heading background:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="2" column="0" >
-+       <widget class="QLabel" name="tl_cGroupFore" >
-+        <property name="text" >
-+         <string>Group heading foreground:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="3" column="0" >
-+       <widget class="QLabel" name="tl_cGroupBack" >
-+        <property name="text" >
-+         <string>Group heading background:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="4" column="0" >
-+       <widget class="QLabel" name="tl_cAnimFront" >
-+        <property name="text" >
-+         <string>Nick animation foreground</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="5" column="0" >
-+       <widget class="QLabel" name="tl_cAnimBack" >
-+        <property name="text" >
-+         <string>Nick animation background:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="6" column="0" >
-        <widget class="QLabel" name="tl_cOnline" >
-         <property name="text" >
-          <string>Online contacts:</string>
-         </property>
-        </widget>
-       </item>
--      <item row="1" column="3" >
-+      <item row="7" column="0" >
-        <widget class="QLabel" name="TextLabel1_2" >
-         <property name="text" >
-          <string>Away contacts:</string>
-         </property>
-        </widget>
-       </item>
--      <item row="2" column="3" >
-+      <item row="8" column="0" >
-        <widget class="QLabel" name="tl_cDND" >
-         <property name="text" >
-          <string>DND contacts:</string>
-         </property>
-        </widget>
-       </item>
--      <item row="3" column="3" >
-+      <item row="9" column="0" >
-        <widget class="QLabel" name="tl_cOffline" >
-         <property name="text" >
-          <string>Offline contacts:</string>
-         </property>
-        </widget>
-       </item>
--      <item row="3" column="2" >
--       <spacer>
--        <property name="orientation" >
--         <enum>Qt::Horizontal</enum>
-+      <item row="0" column="1" >
-+       <widget class="QToolButton" name="pb_cProfileFore" >
-+        <property name="sizePolicy" >
-+         <sizepolicy>
-+          <hsizetype>0</hsizetype>
-+          <vsizetype>0</vsizetype>
-+          <horstretch>0</horstretch>
-+          <verstretch>0</verstretch>
-+         </sizepolicy>
-         </property>
--        <property name="sizeHint" >
-+        <property name="maximumSize" >
-          <size>
--          <width>111</width>
-+          <width>20</width>
-           <height>20</height>
-          </size>
-         </property>
--       </spacer>
--      </item>
--      <item row="4" column="3" >
--       <widget class="QLabel" name="tl_cListBack" >
--        <property name="text" >
--         <string>Contact list background:</string>
--        </property>
--       </widget>
--      </item>
--      <item row="5" column="3" >
--       <widget class="QLabel" name="tl_cStatus" >
-         <property name="text" >
--         <string>Status messages:</string>
-+         <string/>
-         </property>
-        </widget>
-       </item>
--      <item row="0" column="4" >
--       <widget class="QToolButton" name="pb_cOnline" >
-+      <item row="1" column="1" >
-+       <widget class="QToolButton" name="pb_cProfileBack" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -110,8 +146,8 @@
-         </property>
-        </widget>
-       </item>
--      <item row="1" column="4" >
--       <widget class="QToolButton" name="pb_cAway" >
-+      <item row="2" column="1" >
-+       <widget class="QToolButton" name="pb_cGroupFore" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -131,22 +167,29 @@
-         </property>
-        </widget>
-       </item>
--      <item row="1" column="0" >
--       <widget class="QLabel" name="tl_cProfileBack" >
--        <property name="text" >
--         <string>Account heading background:</string>
-+      <item row="3" column="1" >
-+       <widget class="QToolButton" name="pb_cGroupBack" >
-+        <property name="sizePolicy" >
-+         <sizepolicy>
-+          <hsizetype>0</hsizetype>
-+          <vsizetype>0</vsizetype>
-+          <horstretch>0</horstretch>
-+          <verstretch>0</verstretch>
-+         </sizepolicy>
-+        </property>
-+        <property name="maximumSize" >
-+         <size>
-+          <width>20</width>
-+          <height>20</height>
-+         </size>
-         </property>
--       </widget>
--      </item>
--      <item row="3" column="0" >
--       <widget class="QLabel" name="tl_cGroupBack" >
-         <property name="text" >
--         <string>Group heading background:</string>
-+         <string/>
-         </property>
-        </widget>
-       </item>
--      <item row="5" column="1" >
--       <widget class="QToolButton" name="pb_cAnimBack" >
-+      <item row="4" column="1" >
-+       <widget class="QToolButton" name="pb_cAnimFront" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -166,8 +209,8 @@
-         </property>
-        </widget>
-       </item>
--      <item row="1" column="1" >
--       <widget class="QToolButton" name="pb_cProfileBack" >
-+      <item row="5" column="1" >
-+       <widget class="QToolButton" name="pb_cAnimBack" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -187,8 +230,8 @@
-         </property>
-        </widget>
-       </item>
--      <item row="3" column="1" >
--       <widget class="QToolButton" name="pb_cGroupBack" >
-+      <item row="6" column="1" >
-+       <widget class="QToolButton" name="pb_cOnline" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -208,8 +251,8 @@
-         </property>
-        </widget>
-       </item>
--      <item row="0" column="1" >
--       <widget class="QToolButton" name="pb_cProfileFore" >
-+      <item row="7" column="1" >
-+       <widget class="QToolButton" name="pb_cAway" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -229,8 +272,8 @@
-         </property>
-        </widget>
-       </item>
--      <item row="2" column="1" >
--       <widget class="QToolButton" name="pb_cGroupFore" >
-+      <item row="8" column="1" >
-+       <widget class="QToolButton" name="pb_cDND" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -250,8 +293,8 @@
-         </property>
-        </widget>
-       </item>
--      <item row="4" column="1" >
--       <widget class="QToolButton" name="pb_cAnimFront" >
-+      <item row="9" column="1" >
-+       <widget class="QToolButton" name="pb_cOffline" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -271,36 +314,91 @@
-         </property>
-        </widget>
-       </item>
--      <item row="4" column="0" >
--       <widget class="QLabel" name="tl_cAnimFront" >
-+      <item row="3" column="2" >
-+       <spacer>
-+        <property name="orientation" >
-+         <enum>Qt::Horizontal</enum>
-+        </property>
-+        <property name="sizeHint" >
-+         <size>
-+          <width>111</width>
-+          <height>20</height>
-+         </size>
-+        </property>
-+       </spacer>
-+      </item>
-+      <item row="0" column="3" >
-+       <widget class="QLabel" name="tl_cListBack" >
-         <property name="text" >
--         <string>Nick animation foreground:</string>
-+         <string>Contact list background:</string>
-         </property>
-        </widget>
-       </item>
--      <item row="5" column="0" >
--       <widget class="QLabel" name="tl_cAnimBack" >
-+      <item row="1" column="3" >
-+       <widget class="QLabel" name="tl_cStatus" >
-         <property name="text" >
--         <string>Nick animation background:</string>
-+         <string>Status messages:</string>
-         </property>
-        </widget>
-       </item>
--      <item row="0" column="0" >
--       <widget class="QLabel" name="tl_cProfileFore" >
-+      <item row="2" column="3" >
-+       <widget class="QLabel" name="tl_cChatSys" >
-         <property name="text" >
--         <string>Account heading foreground:</string>
-+         <string>System chat messages:</string>
-         </property>
-        </widget>
-       </item>
--      <item row="2" column="0" >
--       <widget class="QLabel" name="tl_cGroupFore" >
-+      <item row="3" column="3" >
-+       <widget class="QLabel" name="tl_cChatSpool" >
-         <property name="text" >
--         <string>Group heading foreground:</string>
-+         <string>Spooled chat messages:</string>
-         </property>
-        </widget>
-       </item>
--      <item row="2" column="4" >
--       <widget class="QToolButton" name="pb_cDND" >
-+      <item row="4" column="3" >
-+       <widget class="QLabel" name="tl_cChatTo" >
-+        <property name="text" >
-+         <string>Outgoing chat message nick:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="5" column="3" >
-+       <widget class="QLabel" name="tl_cChatFrom" >
-+        <property name="text" >
-+         <string>Incoming chat message nick:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="6" column="3" >
-+       <widget class="QLabel" name="tl_cGChatAler" >
-+        <property name="text" >
-+         <string>Groupchat alert messages:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="7" column="3" >
-+       <widget class="QLabel" name="tl_cGChatSys" >
-+        <property name="text" >
-+         <string>Groupchat system messages:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="8" column="3" >
-+       <widget class="QLabel" name="tl_cGChatSpool" >
-+        <property name="text" >
-+         <string>Groupchat spooled messages:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="9" column="3" >
-+       <widget class="QLabel" name="tl_cGChatNick" >
-+        <property name="text" >
-+         <string>Groupchat non-colored nicks:</string>
-+        </property>
-+       </widget>
-+      </item>
-+      <item row="0" column="4" >
-+       <widget class="QToolButton" name="pb_cListBack" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -320,8 +418,8 @@
-         </property>
-        </widget>
-       </item>
--      <item row="3" column="4" >
--       <widget class="QToolButton" name="pb_cOffline" >
-+      <item row="1" column="4" >
-+       <widget class="QToolButton" name="pb_cStatus" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -341,8 +439,8 @@
-         </property>
-        </widget>
-       </item>
--      <item row="4" column="4" >
--       <widget class="QToolButton" name="pb_cListBack" >
-+      <item row="2" column="4" >
-+       <widget class="QToolButton" name="pb_cChatSys" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -362,8 +460,8 @@
-         </property>
-        </widget>
-       </item>
--      <item row="5" column="4" >
--       <widget class="QToolButton" name="pb_cStatus" >
-+      <item row="3" column="4" >
-+       <widget class="QToolButton" name="pb_cChatSpool" >
-         <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>0</hsizetype>
-@@ -383,98 +481,132 @@
-         </property>
-        </widget>
-       </item>
--     </layout>
--    </widget>
--   </item>
--   <item>
--    <widget class="QGroupBox" name="groupBox12" >
--     <property name="title" >
--      <string>Fonts</string>
--     </property>
--     <layout class="QGridLayout" >
--      <property name="margin" >
--       <number>8</number>
--      </property>
--      <property name="spacing" >
--       <number>6</number>
--      </property>
--      <item row="2" column="1" colspan="3" >
--       <widget class="FontLabel" name="le_fChat" />
--      </item>
--      <item row="2" column="0" >
--       <widget class="QLabel" name="tl_fChat" >
--        <property name="enabled" >
--         <bool>true</bool>
-+      <item row="4" column="4" >
-+       <widget class="QToolButton" name="pb_cChatTo" >
-+        <property name="sizePolicy" >
-+         <sizepolicy>
-+          <hsizetype>0</hsizetype>
-+          <vsizetype>0</vsizetype>
-+          <horstretch>0</horstretch>
-+          <verstretch>0</verstretch>
-+         </sizepolicy>
-         </property>
--        <property name="text" >
--         <string>Chat:</string>
-+        <property name="maximumSize" >
-+         <size>
-+          <width>20</width>
-+          <height>20</height>
-+         </size>
-         </property>
--       </widget>
--      </item>
--      <item row="1" column="0" >
--       <widget class="QLabel" name="tl_fMessage" >
-         <property name="text" >
--         <string>Message:</string>
-+         <string/>
-         </property>
-        </widget>
-       </item>
--      <item row="1" column="4" >
--       <widget class="QPushButton" name="pb_fMessage" >
--        <property name="text" >
--         <string>Choose...</string>
-+      <item row="5" column="4" >
-+       <widget class="QToolButton" name="pb_cChatFrom" >
-+        <property name="sizePolicy" >
-+         <sizepolicy>
-+          <hsizetype>0</hsizetype>
-+          <vsizetype>0</vsizetype>
-+          <horstretch>0</horstretch>
-+          <verstretch>0</verstretch>
-+         </sizepolicy>
-         </property>
--       </widget>
--      </item>
--      <item row="2" column="4" >
--       <widget class="QPushButton" name="pb_fChat" >
--        <property name="enabled" >
--         <bool>true</bool>
-+        <property name="maximumSize" >
-+         <size>
-+          <width>20</width>
-+          <height>20</height>
-+         </size>
-         </property>
-         <property name="text" >
--         <string>Choose...</string>
-+         <string/>
-         </property>
-        </widget>
-       </item>
--      <item row="3" column="4" >
--       <widget class="QPushButton" name="pb_fPopup" >
--        <property name="enabled" >
--         <bool>true</bool>
-+      <item row="6" column="4" >
-+       <widget class="QToolButton" name="pb_cGChatAlert" >
-+        <property name="sizePolicy" >
-+         <sizepolicy>
-+          <hsizetype>0</hsizetype>
-+          <vsizetype>0</vsizetype>
-+          <horstretch>0</horstretch>
-+          <verstretch>0</verstretch>
-+         </sizepolicy>
-+        </property>
-+        <property name="maximumSize" >
-+         <size>
-+          <width>20</width>
-+          <height>20</height>
-+         </size>
-         </property>
-         <property name="text" >
--         <string>Choose...</string>
-+         <string/>
-         </property>
-        </widget>
-       </item>
--      <item row="0" column="4" >
--       <widget class="QPushButton" name="pb_fRoster" >
-+      <item row="7" column="4" >
-+       <widget class="QToolButton" name="pb_cGChatSys" >
-+        <property name="sizePolicy" >
-+         <sizepolicy>
-+          <hsizetype>0</hsizetype>
-+          <vsizetype>0</vsizetype>
-+          <horstretch>0</horstretch>
-+          <verstretch>0</verstretch>
-+         </sizepolicy>
-+        </property>
-+        <property name="maximumSize" >
-+         <size>
-+          <width>20</width>
-+          <height>20</height>
-+         </size>
-+        </property>
-         <property name="text" >
--         <string>Choose...</string>
-+         <string/>
-         </property>
-        </widget>
-       </item>
--      <item row="0" column="0" >
--       <widget class="QLabel" name="tl_fRoster" >
-+      <item row="8" column="4" >
-+       <widget class="QToolButton" name="pb_cGChatSpool" >
-+        <property name="sizePolicy" >
-+         <sizepolicy>
-+          <hsizetype>0</hsizetype>
-+          <vsizetype>0</vsizetype>
-+          <horstretch>0</horstretch>
-+          <verstretch>0</verstretch>
-+         </sizepolicy>
-+        </property>
-+        <property name="maximumSize" >
-+         <size>
-+          <width>20</width>
-+          <height>20</height>
-+         </size>
-+        </property>
-         <property name="text" >
--         <string>Roster:</string>
-+         <string/>
-         </property>
-        </widget>
-       </item>
--      <item row="3" column="0" >
--       <widget class="QLabel" name="tl_fPopup" >
-+      <item row="9" column="4" >
-+       <widget class="QToolButton" name="pb_cGChatNick" >
-+        <property name="sizePolicy" >
-+         <sizepolicy>
-+          <hsizetype>0</hsizetype>
-+          <vsizetype>0</vsizetype>
-+          <horstretch>0</horstretch>
-+          <verstretch>0</verstretch>
-+         </sizepolicy>
-+        </property>
-+        <property name="maximumSize" >
-+         <size>
-+          <width>20</width>
-+          <height>20</height>
-+         </size>
-+        </property>
-         <property name="text" >
--         <string>Popup:</string>
-+         <string/>
-         </property>
-        </widget>
-       </item>
--      <item row="3" column="1" colspan="3" >
--       <widget class="FontLabel" name="le_fPopup" />
--      </item>
--      <item row="1" column="1" colspan="3" >
--       <widget class="FontLabel" name="le_fMessage" />
--      </item>
--      <item row="0" column="1" colspan="3" >
--       <widget class="FontLabel" name="le_fRoster" />
--      </item>
-      </layout>
-     </widget>
-    </item>
-@@ -504,14 +636,6 @@
-   <tabstop>pb_cOffline</tabstop>
-   <tabstop>pb_cListBack</tabstop>
-   <tabstop>pb_cStatus</tabstop>
--  <tabstop>le_fRoster</tabstop>
--  <tabstop>pb_fRoster</tabstop>
--  <tabstop>le_fMessage</tabstop>
--  <tabstop>pb_fMessage</tabstop>
--  <tabstop>le_fChat</tabstop>
--  <tabstop>pb_fChat</tabstop>
--  <tabstop>le_fPopup</tabstop>
--  <tabstop>pb_fPopup</tabstop>
-  </tabstops>
-  <resources/>
-  <connections/>
-diff -urN psi-0.12.orig/src/options/options.pri psi-0.12/src/options/options.pri
---- psi-0.12.orig/src/options/options.pri	2008-02-11 23:24:22.000000000 +0100
-+++ psi-0.12/src/options/options.pri	2008-08-09 18:34:42.000000000 +0200
-@@ -46,6 +46,7 @@
- 	$$PWD/opt_events.ui \
- 	$$PWD/opt_status.ui \
- 	$$PWD/opt_appearance.ui \
-+	$$PWD/opt_appearance_fonts.ui \
- 	$$PWD/opt_appearance_misc.ui \
- 	$$PWD/opt_sound.ui \
- 	$$PWD/opt_advanced.ui \
-diff -urN psi-0.12.orig/src/psichatdlg.cpp psi-0.12/src/psichatdlg.cpp
---- psi-0.12.orig/src/psichatdlg.cpp	2008-02-02 18:59:35.000000000 +0100
-+++ psi-0.12/src/psichatdlg.cpp	2008-08-09 18:34:42.000000000 +0200
-@@ -420,7 +420,7 @@
- 	QDateTime t = QDateTime::currentDateTime();
- 	updateLastMsgTime(t);
- 	QString timestr = chatView()->formatTimeStamp(t);
--	QString color = "#00A000";
-+	QString color = PsiOptions::instance()->getOption("options.ui.look.colors.chat.system-messages-color").toString();
- 
- 	chatView()->appendText(QString("<font color=\"%1\">[%2]").arg(color, timestr) + QString(" *** %1</font>").arg(str));
- }
-@@ -428,12 +428,12 @@
- QString PsiChatDlg::colorString(bool local, ChatDlg::SpooledType spooled) const
- {
- 	if (spooled == ChatDlg::Spooled_OfflineStorage)
--		return "#008000";
-+		return PsiOptions::instance()->getOption("options.ui.look.colors.chat.spooled-messages-color").toString();
- 
- 	if (local)
--		return "#FF0000";
-+		return PsiOptions::instance()->getOption("options.ui.look.colors.chat.outgoing-messages-color").toString();
- 
--	return "#0000FF";
-+	return PsiOptions::instance()->getOption("options.ui.look.colors.chat.incoming-messages-color").toString();
- }
- 
- ChatView* PsiChatDlg::chatView() const
-@@ -459,7 +459,7 @@
- 	bool doInsert = t.date() != lastMsgTime_.date();
- 	lastMsgTime_ = t;
- 	if (doInsert) {
--		QString color = "#00A000";
-+		QString color = PsiOptions::instance()->getOption("options.ui.look.colors.chat.system-messages-color").toString();
- 		chatView()->appendText(QString("<font color=\"%1\">*** %2</font>").arg(color).arg(t.date().toString(Qt::ISODate)));
- 	}
- }
-diff -urN psi-0.12.orig/src/psi_profiles.cpp psi-0.12/src/psi_profiles.cpp
---- psi-0.12.orig/src/psi_profiles.cpp	2008-04-24 20:06:44.000000000 +0200
-+++ psi-0.12/src/psi_profiles.cpp	2008-08-09 21:55:03.000000000 +0200
-@@ -1231,6 +1239,14 @@
- 				migrateColorEntry(tag, "profileback", "options.ui.look.colors.contactlist.profile.header-background");
- 				migrateColorEntry(tag, "animfront", "options.ui.look.contactlist.status-change-animation.color1");
- 				migrateColorEntry(tag, "animback", "options.ui.look.contactlist.status-change-animation.color2");
-+				migrateColorEntry(tag, "chatsys", "options.ui.look.colors.chat.system-messages-color");
-+				migrateColorEntry(tag, "chatspool", "options.ui.look.colors.chat.spooled-messages-color");
-+				migrateColorEntry(tag, "chatto", "options.ui.look.colors.chat.outgoing-messages-color");
-+				migrateColorEntry(tag, "chatfrom", "options.ui.look.colors.chat.incoming-messages-color");
-+				migrateColorEntry(tag, "gchatalert", "options.ui.look.colors.groupchat.alert-messages-color");
-+				migrateColorEntry(tag, "gchatsys", "options.ui.look.colors.groupchat.system-messages-color");
-+				migrateColorEntry(tag, "gchatspool", "options.ui.look.colors.groupchat.spooled-messages-color");
-+				migrateColorEntry(tag, "gchatnick", "options.ui.look.colors.groupchat.default-nick-color");
- 			}
- 
- 			tag = findSubTag(p_lnf, "fonts", &found);
diff --git a/psi-customos.patch b/psi-customos.patch
deleted file mode 100644
index 6d78153..0000000
--- a/psi-customos.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- psi-0.11/src/systeminfo.cpp.orig	2007-10-14 16:00:54.000000000 +0200
-+++ psi-0.11/src/systeminfo.cpp	2008-01-25 17:54:13.547934021 +0100
-@@ -15,6 +15,7 @@
- #include <windows.h>
- #endif
- 
-+#include "applicationinfo.h"
- #include "systeminfo.h"
- 
- SystemInfo::SystemInfo() : QObject(QCoreApplication::instance())
-@@ -52,6 +53,7 @@
- 	// get description about os
- 	enum LinuxName {
- 		LinuxNone = 0,
-+		LinuxCustom,
- 
- 		LinuxMandrake,
- 		LinuxDebian,
-@@ -83,6 +85,8 @@
- 		QString file;
- 		QString name;
- 	} osInfo[] = {
-+		{ LinuxCustom,		OsUseFile,	ApplicationInfo::homeDir() + "/custom-os",	""	},
-+
- 		{ LinuxMandrake,	OsUseFile,	"/etc/mandrake-release",	"Mandrake Linux"	},
- 		{ LinuxDebian,		OsAppendFile,	"/etc/debian_version",		"Debian GNU/Linux"	},
- 		{ LinuxGentoo,		OsUseFile,	"/etc/gentoo-release",		"Gentoo Linux"		},
diff --git a/psi-desktop.patch b/psi-desktop.patch
deleted file mode 100644
index 9a7eb91..0000000
--- a/psi-desktop.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- psi-0.10.orig/psi.desktop	2006-01-19 21:17:58.849492250 +0100
-+++ psi-0.10/psi.desktop	2006-01-19 21:23:30.142196750 +0100
-@@ -3,12 +3,12 @@
- Version=1.0
- Type=Application
- Name=Psi
--GenericName=Jabber Client
- Comment=Communicate over the Jabber network
--Icon=psi
-+Icon=psi.png
- Exec=psi
- Terminal=false
- Categories=Network;InstantMessaging;Qt;
-+Encoding=UTF-8
- 
- # Translations
- GenericName[ca]=Client Jabber
-
diff --git a/psi-empty_group-fix.patch b/psi-empty_group-fix.patch
deleted file mode 100644
index b4777e4..0000000
--- a/psi-empty_group-fix.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- psi-0.11/iris/src/xmpp/xmpp-im/types.cpp.orig	2007-10-14 16:00:50.000000000 +0200
-+++ psi-0.11/iris/src/xmpp/xmpp-im/types.cpp	2008-01-25 23:56:27.523786094 +0100
-@@ -2618,7 +2618,7 @@
- 
- bool RosterItem::addGroup(const QString &g)
- {
--	if(inGroup(g))
-+	if(inGroup(g) || g.isEmpty())
- 		return false;
- 
- 	v_groups += g;
-@@ -2667,8 +2667,10 @@
- 		QDomElement i = n.toElement();
- 		if(i.isNull())
- 			continue;
--		if(i.tagName() == "group")
-+		if(i.tagName() == "group") {
- 			g += tagContent(i);
-+			g.removeAll(QString(""));
-+		}
- 	}
- 	QString a = item.attribute("ask");
- 
diff --git a/psi-fix_configure_for_ksh.patch b/psi-fix_configure_for_ksh.patch
deleted file mode 100644
index f6b7980..0000000
--- a/psi-fix_configure_for_ksh.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- configure.orig	2007-10-14 16:00:49.000000000 +0200
-+++ configure	2008-01-25 15:31:19.691535871 +0100
-@@ -701,7 +701,7 @@
- 			if(QFile::exists(path))
- 			{
- 				QString certPathString = 
--					"QCA_SYSTEMSTORE_PATH=\\\\\\\\\\\\\"" + path + "\\\\\\\\\\\\\"";
-+					"QCA_SYSTEMSTORE_PATH=" + path + "";
- 				conf->addDefine(certPathString);
- 				return true;
- 			}
-@@ -746,7 +746,7 @@
- 
- 		// Qt<4.2 workaround
- 		QString certPathString = 
--			"QCA_SYSTEMSTORE_PATH=\\\\\\\\\\\\\"" + path + "\\\\\\\\\\\\\"";
-+			"QCA_SYSTEMSTORE_PATH=" + path + "";
- 		conf->addDefine(certPathString);
- 
- 		return true;
-@@ -1142,8 +1142,8 @@
- 		QFile file("src/config.h");
- 		if ( file.open(QIODevice::WriteOnly | QIODevice::Text) ) {
- 			QTextStream stream( &file );
--			stream << "#define PSI_LIBDIR \"" << conf->getenv("LIBDIR") << "/psi\"" << endl;
--			stream << "#define PSI_DATADIR \"" << conf->getenv("DATADIR") << "/psi\"" << endl;
-+			stream << "#define PSI_LIBDIR \\"" << conf->getenv("LIBDIR") << "/psi\\"" << endl;
-+			stream << "#define PSI_DATADIR \\"" << conf->getenv("DATADIR") << "/psi\\"" << endl;
- 		}
- 
- 		conf->addDefine("HAVE_CONFIG");
-
diff --git a/psi-home_etc.patch b/psi-home_etc.patch
deleted file mode 100644
index c7d4403..0000000
--- a/psi-home_etc.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- psi-0.11/src/applicationinfo.cpp.orig	2007-10-14 16:00:51.000000000 +0200
-+++ psi-0.11/src/applicationinfo.cpp	2008-01-25 16:32:03.390665615 +0100
-@@ -131,7 +131,8 @@
- 		return p;
- 
- #if defined(Q_WS_X11)
--	QDir proghome(QDir::homeDirPath() + "/.psi");
-+	char *home_etc = getenv("HOME_ETC");
-+	QDir proghome((home_etc != NULL && (strncmp(home_etc, "", 1) != 0) ? QString(home_etc) : QDir::homeDirPath()) + "/.psi");
- 	if(!proghome.exists()) {
- 		QDir home = QDir::home();
- 		home.mkdir(".psi");
-@@ -160,7 +161,8 @@
- 
- 	return proghome.path();
- #elif defined(Q_WS_MAC)
--	QDir proghome(QDir::homeDirPath() + "/.psi");
-+	char *home_etc = getenv("HOME_ETC");
-+	QDir proghome((home_etc != NULL && (strncmp(home_etc, "", 1) != 0) ? QString(home_etc) : QDir::homeDirPath()) + "/.psi");
- 	if(!proghome.exists()) {
- 		QDir home = QDir::home();
- 		home.mkdir(".psi");
diff --git a/psi-icon_buttons_big_return-mod.patch b/psi-icon_buttons_big_return-mod.patch
deleted file mode 100644
index f0c8c8b..0000000
--- a/psi-icon_buttons_big_return-mod.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -ur psi-0.11.orig/src/widgets/iconwidget.cpp psi-0.11/src/widgets/iconwidget.cpp
---- psi-0.11.orig/src/widgets/iconwidget.cpp	2007-10-14 16:00:55.000000000 +0200
-+++ psi-0.11/src/widgets/iconwidget.cpp	2007-11-26 20:32:28.000000000 +0100
-@@ -642,11 +642,6 @@
- 
- void IconButton::setPsiIcon(const PsiIcon *i, bool activate)
- {
--#ifndef Q_WS_X11
--	if ( !text().isEmpty() )
--		return;
--#endif
--
- 	forceSetPsiIcon(i, activate);
- 	d->forced = false;
- }
diff --git a/psi-machekku-avatars_in_tooltip.patch b/psi-machekku-avatars_in_tooltip.patch
deleted file mode 100644
index b8f8c14..0000000
--- a/psi-machekku-avatars_in_tooltip.patch
+++ /dev/null
@@ -1,100 +0,0 @@
-Index: psi/src/psipopup.cpp
-===================================================================
---- psi/src/psipopup.cpp	(revision 1061)
-+++ psi/src/psipopup.cpp	(working copy)
-@@ -31,6 +31,7 @@
- #include "psiiconset.h"
- #include "iconlabel.h"
- #include "psioptions.h"
-+#include "avatars.h"
- 
- #include <qapplication.h>
- #include <qlayout.h>
-@@ -68,7 +69,7 @@
- 
- 	void init(const PsiIcon *titleIcon, QString titleText, PsiAccount *_acc, PopupType type);
- 	QString clipText(QString);
--	QBoxLayout *createContactInfo(const PsiIcon *icon, QString text);
-+	QBoxLayout *createContactInfo(const QPixmap *avatar, const PsiIcon *icon, QString text);
- 
- private slots:
- 	void popupDestroyed();
-@@ -193,11 +194,21 @@
- 	return text;
- }
- 
--QBoxLayout *PsiPopup::Private::createContactInfo(const PsiIcon *icon, QString text)
-+QBoxLayout *PsiPopup::Private::createContactInfo(const QPixmap *avatar, const PsiIcon *icon, QString text)
- {
- 	QHBoxLayout *dataBox = new QHBoxLayout();
- 
--	if ( icon ) {
-+
-+	if (avatar && !avatar->isNull()) {
-+		int size = PsiOptions::instance()->getOption("options.ui.chat.avatars.size").toInt();
-+		QLabel *avatarLabel = new QLabel(popup);
-+		avatarLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
-+		avatarLabel->setPixmap(avatar->scaled(QSize(size, size), Qt::KeepAspectRatio, Qt::SmoothTransformation));
-+		dataBox->addWidget(avatarLabel);
-+		dataBox->addSpacing(5);
-+	}
-+
-+	if (icon) {
- 		IconLabel *iconLabel = new IconLabel(popup);
- 		iconLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
- 		iconLabel->setPsiIcon(icon);
-@@ -283,14 +294,14 @@
- 	d->init(icon, text, acc, doAlertIcon ? type : AlertNone);
- }
- 
--void PsiPopup::setData(const PsiIcon *icon, QString text)
-+void PsiPopup::setData(const QPixmap *avatar, const PsiIcon *icon, QString text)
- {
- 	if ( !d->popup ) {
- 		deleteLater();
- 		return;
- 	}
- 
--	d->popup->addLayout( d->createContactInfo(icon, text) );
-+	d->popup->addLayout( d->createContactInfo(avatar, icon, text) );
- 
- 	// update id
- 	if ( icon )
-@@ -370,12 +381,14 @@
- 		}
- 	}
- 
-+	QPixmap avatar = d->account->avatarFactory()->getAvatar(jid);
-+
- 	// show popup
- 	if ( d->popupType != AlertHeadline && (d->popupType != AlertFile || !PsiOptions::instance()->getOption("options.ui.file-transfer.auto-popup").toBool()) )
--		setData(icon, contactText);
-+		setData(&avatar, icon, contactText);
- 	else if ( d->popupType == AlertHeadline ) {
- 		QVBoxLayout *vbox = new QVBoxLayout;
--		vbox->addLayout( d->createContactInfo(icon, contactText) );
-+		vbox->addLayout( d->createContactInfo(&avatar, icon, contactText) );
- 
- 		vbox->addSpacing(5);
- 
-Index: psi/src/psipopup.h
-===================================================================
---- psi/src/psipopup.h	(revision 1061)
-+++ psi/src/psipopup.h	(working copy)
-@@ -23,6 +23,7 @@
- 
- #include <QObject>
- 
-+class QPixmap;
- class PsiCon;
- class PsiAccount;
- class UserListItem;
-@@ -57,7 +58,7 @@
- 	};
- 	PsiPopup(PopupType type, PsiAccount *acc);
- 
--	void setData(const PsiIcon *icon, QString text);
-+	void setData(const QPixmap *avatar, const PsiIcon *icon, QString text);
- 	void setData(const Jid &, const Resource &, const UserListItem * = 0, const PsiEvent * = 0);
- 
- 	void show();
diff --git a/psi-no_online_offline_status.patch b/psi-no_online_offline_status.patch
deleted file mode 100644
index 1b0aac7..0000000
--- a/psi-no_online_offline_status.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- psi-0.12/src/psiaccount.cpp.orig	2008-05-14 23:33:03.000000000 +0200
-+++ psi-0.12/src/psiaccount.cpp	2008-08-01 17:56:28.000000000 +0200
-@@ -2988,11 +2988,11 @@
- void PsiAccount::changeStatus(int x)
- {
- 	if(x == STATUS_OFFLINE && !PsiOptions::instance()->getOption("options.status.ask-for-message-on-offline").toBool()) {
--		setStatus(Status(Status::Offline, "Logged out", 0));
-+		setStatus(Status("","",0,true));
- 	}
- 	else {
- 		if(x == STATUS_ONLINE && !PsiOptions::instance()->getOption("options.status.ask-for-message-on-online").toBool()) {
--			setStatus(Status());
-+			setStatus(Status("","",0,true));
- 		}
- 		else if(x == STATUS_INVISIBLE){
- 			Status s("","",0,true);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/psi.git/commitdiff/d97b149c2946c1d727f3e9d2edde90ca31a4fe09



More information about the pld-cvs-commit mailing list