diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/pidgin-hotkeys | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/pidgin-hotkeys')
-rw-r--r-- | community/pidgin-hotkeys/PKGBUILD | 31 | ||||
-rw-r--r-- | community/pidgin-hotkeys/pidgin-hotkeys.patch | 24 |
2 files changed, 55 insertions, 0 deletions
diff --git a/community/pidgin-hotkeys/PKGBUILD b/community/pidgin-hotkeys/PKGBUILD new file mode 100644 index 000000000..bd2130cab --- /dev/null +++ b/community/pidgin-hotkeys/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 80723 2012-12-01 13:56:24Z fyan $ +# Maintainer: Felix Yan <felixonmars@gmail.com> +# Contributor: Lukas Fleischer <archlinux at cryptocrack dot de> +# Contributor: detto <detto-brumm@freenet.de> + +pkgname=pidgin-hotkeys +pkgver=0.2.4 +pkgrel=2 +pkgdesc="A Pidgin plugin that allows you to define global hotkeys." +arch=('i686' 'x86_64') +url="http://pidgin-hotkeys.sourceforge.net" +license=('GPL') +depends=('pidgin') +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz" + "pidgin-hotkeys.patch") +md5sums=('553aae7319861af9e8716bfe0ba45c30' + '0726353af56270164d7af88470722dd0') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + patch -Np0 -i ../pidgin-hotkeys.patch + + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} diff --git a/community/pidgin-hotkeys/pidgin-hotkeys.patch b/community/pidgin-hotkeys/pidgin-hotkeys.patch new file mode 100644 index 000000000..427295981 --- /dev/null +++ b/community/pidgin-hotkeys/pidgin-hotkeys.patch @@ -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); |