[arch-commits] Commit in xfce4-netload-plugin/trunk (PKGBUILD missing_tooltip.diff)
andyrtr at archlinux.org
andyrtr at archlinux.org
Thu May 14 17:08:50 UTC 2009
Date: Thursday, May 14, 2009 @ 13:08:50
Author: andyrtr
Revision: 39285
upgpkg: xfce4-netload-plugin 0.4.0-5
fix missing tooltip caused by new gtk; added intltool makedep
Added:
xfce4-netload-plugin/trunk/missing_tooltip.diff
Modified:
xfce4-netload-plugin/trunk/PKGBUILD
----------------------+
PKGBUILD | 13 ++++++++-----
missing_tooltip.diff | 17 +++++++++++++++++
2 files changed, 25 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-05-14 16:20:40 UTC (rev 39284)
+++ PKGBUILD 2009-05-14 17:08:50 UTC (rev 39285)
@@ -4,20 +4,23 @@
pkgname=xfce4-netload-plugin
pkgver=0.4.0
-pkgrel=4
+pkgrel=5
pkgdesc="A netload plugin for the Xfce panel"
arch=(i686 x86_64)
license=('GPL2')
url="http://xfce-goodies.berlios.de/"
groups=('xfce4-goodies')
-depends=('xfce4-panel')
-makedepends=('pkgconfig')
+depends=('xfce4-panel>=4.6.1')
+makedepends=('pkgconfig' 'intltool')
options=('!libtool')
-source=(http://goodies.xfce.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('a15ee479089ba7703c5dde33ff439573')
+source=(http://goodies.xfce.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.bz2
+ missing_tooltip.diff)
+md5sums=('a15ee479089ba7703c5dde33ff439573'
+ '66a412b73712cab71447ba740e49e8d6')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
+ patch -Np0 -i $srcdir/missing_tooltip.diff || return 1
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 \
--localstatedir=/var --disable-static
make || return 1
Added: missing_tooltip.diff
===================================================================
--- missing_tooltip.diff (rev 0)
+++ missing_tooltip.diff 2009-05-14 17:08:50 UTC (rev 39285)
@@ -0,0 +1,17 @@
+--- panel-plugin/netload.c 2009-05-14 17:03:57.987823647 +0000
++++ panel-plugin/netload.c.new 2009-05-14 17:04:10.663656158 +0000
+@@ -237,6 +237,14 @@
+
+ if (global->monitor->options.update_interval > 0)
+ {
++ /* reduce the default tooltip timeout to be smaller than the update interval otherwise
++ * we won't see tooltips on GTK 2.16 or newer */
++ GtkSettings *settings;
++ settings = gtk_settings_get_default();
++ if (g_object_class_find_property(G_OBJECT_GET_CLASS(settings), "gtk-tooltip-timeout"))
++ g_object_set(settings, "gtk-tooltip-timeout",
++ global->monitor->options.update_interval - 10, NULL);
++
+ global->timeout_id = g_timeout_add( global->monitor->options.update_interval,
+ (GtkFunction)update_monitors, global);
+ }
More information about the arch-commits
mailing list