diff options
Diffstat (limited to 'community/pidgin-libnotify')
5 files changed, 671 insertions, 0 deletions
diff --git a/community/pidgin-libnotify/PKGBUILD b/community/pidgin-libnotify/PKGBUILD new file mode 100644 index 000000000..ada06ec74 --- /dev/null +++ b/community/pidgin-libnotify/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Daenyth <Daenyth+Arch [at] gmail [dot] com> +# Contributor: Hugo Doria <hugodoria@gmail.com> +# Contributor pidgin-libnotify: 3ED <kas1987@o2.pl> + +pkgname=pidgin-libnotify +pkgver=0.14 +pkgrel=8 +arch=('i686' 'x86_64') +pkgdesc="pidgin plugin that enables popups when someone logs in or messages you." +url="http://gaim-libnotify.sourceforge.net/" +license=('GPL') +depends=('pidgin' 'libnotify') +makedepends=('intltool') +optdepends=('notification-daemon') +options=(!libtool) +source=(http://downloads.sourceforge.net/sourceforge/gaim-libnotify/$pkgname-$pkgver.tar.gz language_fixes.patch + pidgin-libnotify-0.14-libnotify-0.7.patch pidgin-libnotify-showbutton.patch pidgin-libnotify-getfocus.patch) +md5sums=('bfb5368b69c02d429b2b17c00a6673c0' + 'e9bdbb3c7faa61f062fc64277457b6c0' + '05538625f14d9f2c12adae5fa6a1fa26' + 'efe1e86aa1e0bc9f7d20efe7f34ad4a7' + 'e624998744d1c2fb8e2c6be94b04c38a') + +build() { + cd "$srcdir/$pkgname-$pkgver" + patch -Np1 -i "$srcdir/language_fixes.patch" + patch -Np0 -i "$srcdir/pidgin-libnotify-0.14-libnotify-0.7.patch" + patch -Np0 -i "$srcdir/pidgin-libnotify-showbutton.patch" + patch -Np0 -i "$srcdir/pidgin-libnotify-getfocus.patch" + + ./configure --prefix=/usr --disable-deprecated --disable-static + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} diff --git a/community/pidgin-libnotify/language_fixes.patch b/community/pidgin-libnotify/language_fixes.patch new file mode 100644 index 000000000..6898b0483 --- /dev/null +++ b/community/pidgin-libnotify/language_fixes.patch @@ -0,0 +1,536 @@ +diff -Naur pidgin-libnotify-0.14/po/de.po pidgin-libnotify-0.14/po-new/de.po +--- pidgin-libnotify-0.14/po/de.po 2010-03-09 18:20:47.365124617 +0100 ++++ pidgin-libnotify-0.14/po-new/de.po 2010-03-09 18:02:40.715216935 +0100 +@@ -48,7 +48,7 @@ + #: src/pidgin-libnotify.c:379 + #, c-format + msgid "%s signed off" +-msgstr "%s hat sich angemeldet" ++msgstr "%s hat sich abgemeldet" + + #: src/pidgin-libnotify.c:406 + #, c-format +diff -Naur pidgin-libnotify-0.14/po/et.po pidgin-libnotify-0.14/po-new/et.po +--- pidgin-libnotify-0.14/po/et.po 1970-01-01 01:00:00.000000000 +0100 ++++ pidgin-libnotify-0.14/po-new/et.po 2010-03-09 18:14:58.831811232 +0100 +@@ -0,0 +1,80 @@ ++# Pidgin-libnotify translation to Estonian language. ++# Copyright (C) 2009 The Gnome Translation Team. ++# This file is distributed under the same license as the pidgin-libnotify package. ++# Mattias Põldaru <mahfiaz gmail com>, 2009. ++# ++msgid "" ++msgstr "" ++"Project-Id-Version: Pdgin Libnotify\n" ++"Report-Msgid-Bugs-To: \n" ++"POT-Creation-Date: 2009-03-23 11:04+0200\n" ++"PO-Revision-Date: 2009-03-23 11:09+0300\n" ++"Last-Translator: Mattias Põldaru <mahfiaz gmail com>\n" ++"Language-Team: Gnome Estonian Translation Team <gnome-et@linux.ee>\n" ++"MIME-Version: 1.0\n" ++"Content-Type: text/plain; charset=UTF-8\n" ++"Content-Transfer-Encoding: 8bit\n" ++"Plural-Forms: nplurals=2; plural = n!=1;\n" ++"X-Poedit-Language: Estonian\n" ++ ++#: ../src/pidgin-libnotify.c:57 ++msgid "New messages" ++msgstr "Uutele sõnumitele" ++ ++#: ../src/pidgin-libnotify.c:62 ++msgid "Only new conversations" ++msgstr "Ainult uutele vestlustele" ++ ++#: ../src/pidgin-libnotify.c:67 ++msgid "Ignore events from blocked users" ++msgstr "Blokitud kasutajaid eiratakse" ++ ++#: ../src/pidgin-libnotify.c:72 ++msgid "Buddy signs on" ++msgstr "Sõber logib sisse" ++ ++#: ../src/pidgin-libnotify.c:77 ++msgid "Buddy signs off" ++msgstr "Sõber logib välja" ++ ++#: ../src/pidgin-libnotify.c:82 ++msgid "Only when available" ++msgstr "Ainult siis, kui olekuks on saadaval" ++ ++#: ../src/pidgin-libnotify.c:320 ++msgid "Show" ++msgstr "Näita" ++ ++#: ../src/pidgin-libnotify.c:352 ++#, c-format ++msgid "%s signed on" ++msgstr "%s logis sisse" ++ ++#: ../src/pidgin-libnotify.c:384 ++#, c-format ++msgid "%s signed off" ++msgstr "%s logis välja" ++ ++#: ../src/pidgin-libnotify.c:411 ++#, c-format ++msgid "%s says:" ++msgstr "%s ütleb:" ++ ++#: ../src/pidgin-libnotify.c:577 ++msgid "Libnotify Popups" ++msgstr "Libnotify hüpikaknad" ++ ++#: ../src/pidgin-libnotify.c:578 ++msgid "Displays popups via libnotify." ++msgstr "Kuvab hüpikaknaid kasutades libnotify'd." ++ ++#: ../src/pidgin-libnotify.c:579 ++msgid "" ++"Pidgin-libnotify:\n" ++"Displays popups via libnotify." ++msgstr "" ++"Pidgin-libnotify:\n" ++"Kuvab hüpikaknaid kasutades libnotify'd." ++ ++ ++ +diff -Naur pidgin-libnotify-0.14/po/hu.po pidgin-libnotify-0.14/po-new/hu.po +--- pidgin-libnotify-0.14/po/hu.po 2007-06-30 20:53:22.000000000 +0200 ++++ pidgin-libnotify-0.14/po-new/hu.po 2010-03-09 18:13:38.721834227 +0100 +@@ -1,8 +1,7 @@ + msgid "" + msgstr "" +-"Project-Id-Version: \n" +-"Report-Msgid-Bugs-To: \n" +-"POT-Creation-Date: 2007-06-30 19:58+0000\n" ++"Project-Id-Version: pidgin-libnotify\n" ++"POT-Creation-Date: \n" + "PO-Revision-Date: 2006-11-01 18:33+0100\n" + "Last-Translator: Peter Avramucz <muczy@freestart.hu>\n" + "Language-Team: \n" +@@ -11,58 +10,58 @@ + "Content-Transfer-Encoding: 8bit\n" + "X-Poedit-Country: HUNGARY\n" + +-#: src/pidgin-libnotify.c:57 ++#: src/gaim-libnotify.c:57 + msgid "New messages" + msgstr "Új üzenetek" + +-#: src/pidgin-libnotify.c:62 ++#: src/gaim-libnotify.c:62 + msgid "Only new conversations" + msgstr "Csak az új beszélgetéseknél" + +-#: src/pidgin-libnotify.c:67 ++#: src/gaim-libnotify.c:67 + msgid "Ignore events from blocked users" + msgstr "Hagyja figyelmen kívűl a blokkolt felhasználókat" + +-#: src/pidgin-libnotify.c:72 ++#: src/gaim-libnotify.c:72 + msgid "Buddy signs on" + msgstr "Partner bejelentkezett" + +-#: src/pidgin-libnotify.c:77 ++#: src/gaim-libnotify.c:77 + msgid "Buddy signs off" + msgstr "Partner kijelentkezett" + +-#: src/pidgin-libnotify.c:315 ++#: src/gaim-libnotify.c:295 + msgid "Show" + msgstr "Mutasd" + +-#: src/pidgin-libnotify.c:347 ++#: src/gaim-libnotify.c:324 + #, c-format + msgid "%s signed on" + msgstr "%s bejelentkezett" + +-#: src/pidgin-libnotify.c:379 ++#: src/gaim-libnotify.c:353 + #, c-format + msgid "%s signed off" + msgstr "%s kijelentkezett" + +-#: src/pidgin-libnotify.c:406 ++#: src/gaim-libnotify.c:380 + #, c-format + msgid "%s says:" + msgstr "%s mondja:" + +-#: src/pidgin-libnotify.c:572 ++#: src/gaim-libnotify.c:543 + msgid "Libnotify Popups" + msgstr "Libnotify buborékok" + +-#: src/pidgin-libnotify.c:573 ++#: src/gaim-libnotify.c:544 + msgid "Displays popups via libnotify." + msgstr "Mutassa a buborékokat libnotify segítségével." + +-#: src/pidgin-libnotify.c:574 +-#, fuzzy ++#: src/gaim-libnotify.c:545 + msgid "" +-"Pidgin-libnotify:\n" ++"Gaim-libnotify:\n" + "Displays popups via libnotify." + msgstr "" + "Gaim-libnotify:\n" + "Mutassa a buborékokat libnotify segítségével." ++ +diff -Naur pidgin-libnotify-0.14/po/it.po pidgin-libnotify-0.14/po-new/it.po +--- pidgin-libnotify-0.14/po/it.po 2007-06-30 20:53:22.000000000 +0200 ++++ pidgin-libnotify-0.14/po-new/it.po 2010-03-09 18:03:34.565229551 +0100 +@@ -1,79 +1,78 @@ + # Italian (it) translation of gaim-libnotify. +-# Copyright (C) 2006, Marco Cabizza <marco87@gmail.com> +-# + # This file is distributed under the same license as gaim-libnotify. ++# Copyright (C) 2006, Marco Cabizza <marco87@gmail.com> ++# Copyright (C) 2009, The Free Software Foundation, Inc. ++# Gruppo traduzione italiano di Ubuntu, <gruppo-traduzione@ubuntu-it.org> ++# Milo Casagrande <milo@ubuntu.com> + # + msgid "" + msgstr "" + "Project-Id-Version: gaim-libnotify\n" + "Report-Msgid-Bugs-To: \n" +-"POT-Creation-Date: 2007-06-30 19:58+0000\n" +-"PO-Revision-Date: 2007-05-25 12:30-0300\n" +-"Last-Translator: Marco Cabizza <marco87@gmail.com>\n" ++"POT-Creation-Date: 2009-09-29 16:23+0000\n" ++"PO-Revision-Date: 2009-11-04 15:15+0000\n" ++"Last-Translator: Milo Casagrande <milo@casagrande.name>\n" + "Language-Team: \n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"Plural-Forms: nplurals=2; plural=n != 1;\n" ++"X-Launchpad-Export-Date: 2009-11-11 17:20+0000\n" ++"X-Generator: Launchpad (build Unknown)\n" + +-#: src/pidgin-libnotify.c:57 +-#, fuzzy ++#: ../src/pidgin-libnotify.c:95 + msgid "New messages" + msgstr "Nuovi messaggi" + +-#: src/pidgin-libnotify.c:62 ++#: ../src/pidgin-libnotify.c:100 + msgid "Only new conversations" +-msgstr "Solo le nuove finestre" ++msgstr "Solo nuove conversazioni" + +-#: src/pidgin-libnotify.c:67 ++#: ../src/pidgin-libnotify.c:105 + msgid "Ignore events from blocked users" +-msgstr "Ignora gli utenti bloccati" ++msgstr "Ignora eventi da utenti bloccati" + +-#: src/pidgin-libnotify.c:72 +-#, fuzzy ++#: ../src/pidgin-libnotify.c:110 + msgid "Buddy signs on" +-msgstr "%s entra" ++msgstr "Il conoscente si connette" + +-#: src/pidgin-libnotify.c:77 +-#, fuzzy ++#: ../src/pidgin-libnotify.c:115 + msgid "Buddy signs off" +-msgstr "%s entra" ++msgstr "Il conoscente si disconnette" + +-#: src/pidgin-libnotify.c:315 ++#: ../src/pidgin-libnotify.c:120 ++msgid "Only when available" ++msgstr "Solo quando disponibile" ++ ++#: ../src/pidgin-libnotify.c:125 ++msgid "Names to remove notifications for" ++msgstr "Nomi per cui rimuovere le notifiche" ++ ++#: ../src/pidgin-libnotify.c:505 + msgid "Show" + msgstr "Mostra" + +-#: src/pidgin-libnotify.c:347 +-#, c-format +-msgid "%s signed on" +-msgstr "%s è entrato" +- +-#: src/pidgin-libnotify.c:379 +-#, fuzzy, c-format +-msgid "%s signed off" +-msgstr "%s è entrato" +- +-#: src/pidgin-libnotify.c:406 +-#, c-format +-msgid "%s says:" +-msgstr "%s dice:" ++#: ../src/pidgin-libnotify.c:538 ++msgid "is online" ++msgstr "è in linea" ++ ++#: ../src/pidgin-libnotify.c:567 ++msgid "is offline" ++msgstr "non è in linea" + +-#: src/pidgin-libnotify.c:572 ++#: ../src/pidgin-libnotify.c:1399 + msgid "Libnotify Popups" +-msgstr "Popups di libnotify" ++msgstr "Notifiche di libnotify" + +-#: src/pidgin-libnotify.c:573 ++#: ../src/pidgin-libnotify.c:1400 + msgid "Displays popups via libnotify." +-msgstr "Mostra avvisi mediante libnotify." ++msgstr "Visualizza le notifiche mediante libnotify." + +-#: src/pidgin-libnotify.c:574 +-#, fuzzy ++#: ../src/pidgin-libnotify.c:1401 + msgid "" + "Pidgin-libnotify:\n" + "Displays popups via libnotify." + msgstr "" +-"Gaim-libnotify:\n" +-"Mostra avvisi mediante libnotify." ++"Pidgin-libnotify:\n" ++"Visualizza le notifiche mediante libnotify." + +-#~ msgid "Libnotify Interface" +-#~ msgstr "Interfaccia libnotify" ++ +diff -Naur pidgin-libnotify-0.14/po/nl.po pidgin-libnotify-0.14/po-new/nl.po +--- pidgin-libnotify-0.14/po/nl.po 2007-06-30 20:53:22.000000000 +0200 ++++ pidgin-libnotify-0.14/po-new/nl.po 2010-03-09 18:17:48.188461774 +0100 +@@ -31,12 +31,12 @@ + + #: src/pidgin-libnotify.c:72 + msgid "Buddy signs on" +-msgstr "Contactpersoon heeft zich aangemeld" ++msgstr "Contactpersoon meldt zich aan" + + #: src/pidgin-libnotify.c:77 + #, fuzzy + msgid "Buddy signs off" +-msgstr "Contactpersoon heeft zich aangemeld" ++msgstr "Contactpersoon meldt zich af" + + #: src/pidgin-libnotify.c:315 + msgid "Show" +@@ -50,7 +50,7 @@ + #: src/pidgin-libnotify.c:379 + #, fuzzy, c-format + msgid "%s signed off" +-msgstr "%s heeft zich aangemeld" ++msgstr "%s heeft zich afgemeld" + + #: src/pidgin-libnotify.c:406 + #, c-format +@@ -59,7 +59,7 @@ + + #: src/pidgin-libnotify.c:572 + msgid "Libnotify Popups" +-msgstr "" ++msgstr "Libnotify Popups" + + #: src/pidgin-libnotify.c:573 + msgid "Displays popups via libnotify." +@@ -71,7 +71,7 @@ + "Pidgin-libnotify:\n" + "Displays popups via libnotify." + msgstr "" +-"Gaim-libnotify:\n" ++"Pidgin-libnotify:\n" + "Toont popups via libnotify." + + #~ msgid "Libnotify Interface" +diff -Naur pidgin-libnotify-0.14/po/pl.po pidgin-libnotify-0.14/po-new/pl.po +--- pidgin-libnotify-0.14/po/pl.po 2008-12-14 18:03:42.000000000 +0100 ++++ pidgin-libnotify-0.14/po-new/pl.po 2010-03-09 18:09:47.555190702 +0100 +@@ -1,22 +1,18 @@ +-# Polish (pl) translation of gaim-libnotify +-# Copyright (C) 2006, Krzysztof Rosiński <kr@post.pl> +-# This file is distributed under the same license as the gaim-libnotify package. ++# translation of pl.po to Polish + # Krzysztof Rosiński <kr@post.pl>, 2006. + # Piotr Drąg <raven@pmail.pl>, 2007. + # + msgid "" + msgstr "" +-"Project-Id-Version: gaim-libnotify\n" ++"Project-Id-Version: pl\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2007-06-30 19:58+0000\n" +-"PO-Revision-Date: 2006-03-13 19:39+ZONE\n" ++"PO-Revision-Date: 2007-06-09 19:00+0200\n" + "Last-Translator: Piotr Drąg <raven@pmail.pl>\n" + "Language-Team: Polish <pl@li.org>\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +-"|| n%100>=20) ? 1 : 2);\n" + + #: src/pidgin-libnotify.c:57 + msgid "New messages" +@@ -73,3 +69,5 @@ + "Pidgin-libnotify:\n" + "Wyświetla powiadomienia przez libnotify." + ++ ++ +diff -Naur pidgin-libnotify-0.14/po/ro.po pidgin-libnotify-0.14/po-new/ro.po +--- pidgin-libnotify-0.14/po/ro.po 2007-06-30 20:53:22.000000000 +0200 ++++ pidgin-libnotify-0.14/po-new/ro.po 2010-03-09 18:14:01.732650658 +0100 +@@ -8,69 +8,66 @@ + msgstr "" + "Project-Id-Version: ro\n" + "Report-Msgid-Bugs-To: \n" +-"POT-Creation-Date: 2007-06-30 19:58+0000\n" +-"PO-Revision-Date: 2007-01-25 22:00+0200\n" +-"Last-Translator: Ion Alin <alyn3d@gmail.com>\n" +-"Language-Team: <ro@li.org>\n" ++"POT-Creation-Date: 2009-04-24 10:15+0000\n" ++"PO-Revision-Date: 2009-09-10 13:40+0000\n" ++"Last-Translator: Adi Roiban <adi@roiban.ro>\n" ++"Language-Team: <ro@li.org>\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"X-Generator: KBabel 1.11.4\n" +-"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " +-"20)) ? 1 : 2;\n" ++"X-Launchpad-Export-Date: 2009-09-10 16:28+0000\n" ++"X-Generator: Launchpad (build Unknown)\n" + +-#: src/pidgin-libnotify.c:57 ++#: ../src/pidgin-libnotify.c:75 + msgid "New messages" + msgstr "Mesaje noi" + +-#: src/pidgin-libnotify.c:62 ++#: ../src/pidgin-libnotify.c:80 + msgid "Only new conversations" +-msgstr "Numai conversatii noi" ++msgstr "Doar conversațiile noi" + +-#: src/pidgin-libnotify.c:67 ++#: ../src/pidgin-libnotify.c:85 + msgid "Ignore events from blocked users" +-msgstr "Ignora evenimentele de la utilizatorii blocati" ++msgstr "Ignoră evenimentele de la utilizatorii blocați" + +-#: src/pidgin-libnotify.c:72 ++#: ../src/pidgin-libnotify.c:90 + msgid "Buddy signs on" +-msgstr "Userul este online" ++msgstr "Contact conectat" + +-#: src/pidgin-libnotify.c:77 ++#: ../src/pidgin-libnotify.c:95 + msgid "Buddy signs off" +-msgstr "Userul este offline" ++msgstr "Contact deconectat" + +-#: src/pidgin-libnotify.c:315 ++#: ../src/pidgin-libnotify.c:100 ++msgid "Only when available" ++msgstr "Doar când sunt disponibil(ă)" ++ ++#: ../src/pidgin-libnotify.c:454 + msgid "Show" +-msgstr "Arata" ++msgstr "Afișează" ++ ++#: ../src/pidgin-libnotify.c:487 ++msgid "is online" ++msgstr "s-a conectat" + +-#: src/pidgin-libnotify.c:347 +-#, c-format +-msgid "%s signed on" +-msgstr "%s este online" +- +-#: src/pidgin-libnotify.c:379 +-#, c-format +-msgid "%s signed off" +-msgstr "%s este offline" +- +-#: src/pidgin-libnotify.c:406 +-#, c-format +-msgid "%s says:" +-msgstr "%s spune:" ++#: ../src/pidgin-libnotify.c:516 ++msgid "is offline" ++msgstr "s-a deconectat" + +-#: src/pidgin-libnotify.c:572 ++#: ../src/pidgin-libnotify.c:1200 + msgid "Libnotify Popups" +-msgstr "Pop-up Libnotify" ++msgstr "Notificări libnotify" + +-#: src/pidgin-libnotify.c:573 ++#: ../src/pidgin-libnotify.c:1201 + msgid "Displays popups via libnotify." +-msgstr "Arata popup-uri via libnotify." ++msgstr "Afișează notificări via libnotify." + +-#: src/pidgin-libnotify.c:574 +-#, fuzzy ++#: ../src/pidgin-libnotify.c:1202 + msgid "" + "Pidgin-libnotify:\n" + "Displays popups via libnotify." + msgstr "" +-"Gaim-libnotify:\n" +-"Arata popup-uri via libnotify." ++"Pidgin-libnotify:\n" ++"Afișează notificări via libnotify." ++ ++ +diff -Naur pidgin-libnotify-0.14/po/ru.po pidgin-libnotify-0.14/po-new/ru.po +--- pidgin-libnotify-0.14/po/ru.po 2008-12-14 18:09:59.000000000 +0100 ++++ pidgin-libnotify-0.14/po-new/ru.po 2010-03-09 18:08:58.941861562 +0100 +@@ -7,11 +7,11 @@ + msgstr "" + "Project-Id-Version: gaim-libnotify\n" + "Report-Msgid-Bugs-To: \n" +-"POT-Creation-Date: 2007-06-30 19:58+0000\n" ++"POT-Creation-Date: 2009-08-07 18:45+0000\n" + "PO-Revision-Date: 2007-11-29 12:30-0300\n" + "Last-Translator: Dmitry Egorkin <egorkin@gmail.com>\n" + "Language-Team: Russian\n" +-"MIME-Version: 1.0\n" ++"MIME-Version: 1.1\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" + "Plural-Forms: nplurals=2; plural=n != 1;\n" +@@ -43,12 +43,12 @@ + #: src/pidgin-libnotify.c:347 + #, c-format + msgid "%s signed on" +-msgstr "%s пришёл" ++msgstr "%s в сети" + + #: src/pidgin-libnotify.c:379 + #, c-format + msgid "%s signed off" +-msgstr "%s ушёл" ++msgstr "%s не в сети" + + #: src/pidgin-libnotify.c:406 + #, c-format +@@ -73,3 +73,5 @@ + + #~ msgid "Libnotify Interface" + #~ msgstr "Настройки libnotify" ++ ++ diff --git a/community/pidgin-libnotify/pidgin-libnotify-0.14-libnotify-0.7.patch b/community/pidgin-libnotify/pidgin-libnotify-0.14-libnotify-0.7.patch new file mode 100644 index 000000000..40e6c02b8 --- /dev/null +++ b/community/pidgin-libnotify/pidgin-libnotify-0.14-libnotify-0.7.patch @@ -0,0 +1,18 @@ +--- src/pidgin-libnotify.c ++++ src/pidgin-libnotify.c +@@ -286,7 +286,15 @@ + g_free (tr_body); + return; + } ++#ifdef NOTIFY_CHECK_VERSION ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ notification = notify_notification_new (title, tr_body, NULL); ++#else + notification = notify_notification_new (title, tr_body, NULL, NULL); ++#endif ++#else ++ notification = notify_notification_new (title, tr_body, NULL, NULL); ++#endif + purple_debug_info (PLUGIN_ID, "notify(), new: " + "title: '%s', body: '%s', buddy: '%s'\n", + title, tr_body, best_name (buddy)); diff --git a/community/pidgin-libnotify/pidgin-libnotify-getfocus.patch b/community/pidgin-libnotify/pidgin-libnotify-getfocus.patch new file mode 100644 index 000000000..db45829d9 --- /dev/null +++ b/community/pidgin-libnotify/pidgin-libnotify-getfocus.patch @@ -0,0 +1,69 @@ +--- src/pidgin-libnotify.c 2013-05-07 17:38:31.397261982 +0200 ++++ src2/pidgin-libnotify.c 2013-05-07 17:43:43.787904584 +0200 +@@ -169,6 +169,49 @@ pixbuf_from_buddy_icon (PurpleBuddyIcon + return icon; + } + ++/* Taken from pidgin-hotkeys to get focus on conversation window */ ++static void ++hacky_active_window(GtkWidget *window) ++{ ++ GdkScreen *screen; ++ GdkWindow *root; ++ GdkDisplay *display; ++ Display *xdisplay; ++ Window xroot; ++ XEvent xev; ++ static Atom _net_active_window = None; ++ ++ screen = gtk_widget_get_screen(window); ++ root = gdk_screen_get_root_window(screen); ++ display = gdk_screen_get_display(screen); ++ ++ xdisplay = GDK_DISPLAY_XDISPLAY(display); ++ xroot = GDK_WINDOW_XWINDOW(root); ++ ++ if (_net_active_window == None) ++ _net_active_window = XInternAtom(xdisplay, ++ "_NET_ACTIVE_WINDOW", ++ False); ++ ++ xev.xclient.type = ClientMessage; ++ xev.xclient.serial = 0; ++ xev.xclient.send_event = True; ++ xev.xclient.window = GDK_WINDOW_XWINDOW(window->window); ++ xev.xclient.message_type = _net_active_window; ++ xev.xclient.format = 32; ++ xev.xclient.data.l[0] = 1; /* requestor type; we're an app, I guess */ ++ xev.xclient.data.l[1] = CurrentTime; ++ xev.xclient.data.l[2] = None; /* "currently active window", supposedly */ ++ xev.xclient.data.l[3] = 0; ++ xev.xclient.data.l[4] = 0; ++ ++ XSendEvent(xdisplay, ++ xroot, False, ++ SubstructureRedirectMask | SubstructureNotifyMask, ++ &xev); ++} ++ ++ + static void + action_cb (NotifyNotification *notification, + gchar *action, gpointer user_data) +@@ -194,6 +237,16 @@ action_cb (NotifyNotification *notificat + buddy->name); + } + conv->ui_ops->present (conv); ++ ++ /* get the focus on the new conversation window */ ++ { ++ GtkWindow *gtkwindow; ++ ++ gtkwindow = GTK_WINDOW(pidgin_conv_get_window(PIDGIN_CONVERSATION(conv))->window); ++ /*gtk_window_present(gtkwindow);*/ ++ hacky_active_window(GTK_WIDGET(gtkwindow)); ++ } ++ + + notify_notification_close (notification, NULL); + } diff --git a/community/pidgin-libnotify/pidgin-libnotify-showbutton.patch b/community/pidgin-libnotify/pidgin-libnotify-showbutton.patch new file mode 100644 index 000000000..1f84e6025 --- /dev/null +++ b/community/pidgin-libnotify/pidgin-libnotify-showbutton.patch @@ -0,0 +1,10 @@ +--- src/pidgin-libnotify.c.orig 2007-10-01 20:52:38.000000000 +1000 ++++ src/pidgin-libnotify.c 2007-10-01 20:53:20.000000000 +1000 +@@ -307,6 +307,7 @@ + g_hash_table_insert (buddy_hash, contact, notification); + + g_object_set_data (G_OBJECT(notification), "contact", contact); ++ g_object_set_data (G_OBJECT(notification), "buddy", buddy); + + g_signal_connect (notification, "closed", G_CALLBACK(closed_cb), NULL); + |