[arch-commits] Commit in pidgin-hotkeys/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 15:48:12 UTC 2020


    Date: Tuesday, July 7, 2020 @ 15:48:12
  Author: felixonmars
Revision: 659003

archrelease: copy trunk to community-staging-x86_64

Added:
  pidgin-hotkeys/repos/community-staging-x86_64/
  pidgin-hotkeys/repos/community-staging-x86_64/PKGBUILD
    (from rev 659002, pidgin-hotkeys/trunk/PKGBUILD)
  pidgin-hotkeys/repos/community-staging-x86_64/pidgin-hotkeys.patch
    (from rev 659002, pidgin-hotkeys/trunk/pidgin-hotkeys.patch)

----------------------+
 PKGBUILD             |   30 ++++++++++++++++++++++++++++++
 pidgin-hotkeys.patch |   24 ++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

Copied: pidgin-hotkeys/repos/community-staging-x86_64/PKGBUILD (from rev 659002, pidgin-hotkeys/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 15:48:12 UTC (rev 659003)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: detto <detto-brumm at freenet.de>
+
+pkgname=pidgin-hotkeys
+pkgver=0.2.4
+pkgrel=5
+pkgdesc="A Pidgin plugin that allows you to define global hotkeys."
+arch=('x86_64')
+url="http://pidgin-hotkeys.sourceforge.net"
+license=('GPL')
+depends=('pidgin')
+source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+        "pidgin-hotkeys.patch")
+sha512sums=('99897a47f91c5ceacabdec13859526f6af6270e171b94b49183ad5cc5118b5e3f5377d02ffd0bdbdbaafdd6f23f400deb604a8fe686cd29103187276f20aca86'
+            'db7fa4d478ab0f2c84ac061b8c4a5bcbd6047e83e9cf0b76c79153df3aaa32d567571ebf3fe7b5b757aacd6098bcba36e2846a3480d15069881f7f96f96aafcf')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  patch -Np0 -i ../pidgin-hotkeys.patch
+
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+}

Copied: pidgin-hotkeys/repos/community-staging-x86_64/pidgin-hotkeys.patch (from rev 659002, pidgin-hotkeys/trunk/pidgin-hotkeys.patch)
===================================================================
--- community-staging-x86_64/pidgin-hotkeys.patch	                        (rev 0)
+++ community-staging-x86_64/pidgin-hotkeys.patch	2020-07-07 15:48:12 UTC (rev 659003)
@@ -0,0 +1,24 @@
+--- src/hotkeys.c	2007-06-22 20:37:00.000000000 +0200
++++ src/hotkeys.c	2008-04-18 16:08:46.000000000 +0200
+@@ -152,15 +152,19 @@
+ 
+             if ((l = get_pending_list(1)))
+ 	    {
+-		pidgin_conv_present_conversation((PurpleConversation *)l->data);
++			PurpleConversation *conv = l->data;
++		pidgin_conv_present_conversation(conv);
+ 
+ #ifdef GDK_WINDOWING_X11
+ 		{
+ 		    GtkWindow *gtkwindow;
++			PidginConversation *gtkconv = PIDGIN_CONVERSATION(conv);
+ 
+-		    gtkwindow = GTK_WINDOW(pidgin_conv_get_window(PIDGIN_CONVERSATION((PurpleConversation *)l->data))->window);
++		    gtkwindow = GTK_WINDOW(pidgin_conv_get_window(PIDGIN_CONVERSATION(conv))->window);
+ 		    /*gtk_window_present(gtkwindow);*/
+ 		    hacky_active_window(GTK_WIDGET(gtkwindow));
++
++			pidgin_conv_window_switch_gtkconv(gtkconv->win, gtkconv);
+ 		}
+ #endif
+ 		g_list_free(l);



More information about the arch-commits mailing list