From kde-core-devel Fri Jan 07 22:08:37 2005 From: Olivier Goffart Date: Fri, 07 Jan 2005 22:08:37 +0000 To: kde-core-devel Subject: Re: Sharing emoticons themes between Kopete and Konversation. Message-Id: <200501072308.37965.ogoffart () tiscalinet ! be> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=110513569024003 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-00=_lhw3BJ2CE6n19nq" --Boundary-00=_lhw3BJ2CE6n19nq Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le Vendredi 7 Janvier 2005 16:20, Ingo Kl=F6cker a =E9crit=A0: > On Friday 07 January 2005 15:47, Waldo Bastian wrote: > > On Friday 07 January 2005 15:34, Olivier Goffart wrote: > > > That's why i suggest placing emoticons in $KDEDIR/share/emoticons > > > is that ok ? > > > > I think so. > > I second this. I've attached a patch to kdecore which enable that directory. (i've posted more patch for kopete in the kopete mailing list) > > > And most emoticons theme should probably be placed in kdeartwork. > > > keeping only the default one in kdenetwork with kopete. > > > > I would move the default one to kdelibs then actually. That way > > Konversation doesn't need to depend on Kopete for its icons. Ok > And eventually KMail will also support emoticons (there's already a > patch for this and it's even on the feature plan for 3.4). nice. =20 > > Is there a document that describes how these themes look like? You may > > wish to submit that to freedesktop.org. =20 I just done it. --Boundary-00=_lhw3BJ2CE6n19nq Content-Type: text/x-diff; charset="iso-8859-1"; name="emoticons_kdecore.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="emoticons_kdecore.diff" Index: kstandarddirs.cpp =================================================================== RCS file: /home/kde/kdelibs/kdecore/kstandarddirs.cpp,v retrieving revision 1.192 diff -u -p -b -B -r1.192 kstandarddirs.cpp --- kstandarddirs.cpp 22 Dec 2004 20:18:12 -0000 1.192 +++ kstandarddirs.cpp 7 Jan 2005 19:20:46 -0000 @@ -100,7 +100,7 @@ static const char* const types[] = {"htm "wallpaper", "lib", "pixmap", "templates", "module", "qtplugins", "xdgdata-apps", "xdgdata-dirs", "xdgconf-menu", - "kcfg", 0 }; + "kcfg", "emoticons", 0 }; static int tokenize( QStringList& token, const QString& str, const QString& delim ); @@ -1061,6 +1061,10 @@ QString KStandardDirs::kde_default(const return "menus/"; if (!strcmp(type, "kcfg")) return "share/config.kcfg"; + if (!strcmp(type, "emoticons")) + return "share/emoticons"; + + qFatal("unknown resource type %s", type); return QString::null; } Index: kstandarddirs.h =================================================================== RCS file: /home/kde/kdelibs/kdecore/kstandarddirs.h,v retrieving revision 1.121 diff -u -p -b -B -r1.121 kstandarddirs.h --- kstandarddirs.h 3 Dec 2004 11:12:51 -0000 1.121 +++ kstandarddirs.h 7 Jan 2005 19:20:46 -0000 @@ -90,6 +90,7 @@ class KStandardDirsPrivate; * @li wallpaper - Wallpapers. * @li tmp - Temporary files (specific for both current host and current user) * @li socket - UNIX Sockets (specific for both current host and current user) + * @li emoticons - Emoticons themes * * A type that is added by the class KApplication if you use it, is * appdata. This one makes the use of the type data a bit easier as it --Boundary-00=_lhw3BJ2CE6n19nq--