diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/xfce4-systemload-plugin |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/xfce4-systemload-plugin')
-rw-r--r-- | extra/xfce4-systemload-plugin/PKGBUILD | 33 | ||||
-rw-r--r-- | extra/xfce4-systemload-plugin/missing_tooltip.diff | 21 |
2 files changed, 54 insertions, 0 deletions
diff --git a/extra/xfce4-systemload-plugin/PKGBUILD b/extra/xfce4-systemload-plugin/PKGBUILD new file mode 100644 index 000000000..a499ab317 --- /dev/null +++ b/extra/xfce4-systemload-plugin/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 104779 2011-01-04 21:58:54Z andyrtr $ +# Maintainer: AndyRTR <andyrtr@archlinux.org> +# Contributor: Aurelien Foret <orelien@chez.com> + +pkgname=xfce4-systemload-plugin +pkgver=1.0.0 +pkgrel=1 +pkgdesc="A system load plugin for the Xfce4 panel" +arch=('i686' 'x86_64') +license=('custom') +url="http://goodies.xfce.org/projects/panel-plugins/xfce4-systemload-plugin" +groups=('xfce4-goodies') +depends=('xfce4-panel>=4.7.4' 'libxfcegui4') +makedepends=('pkgconfig' 'intltool') +options=('!libtool') +source=(http://archive.xfce.org/src/panel-plugins/${pkgname}/1.0/${pkgname}-${pkgver}.tar.bz2) +md5sums=('da4f0e8bfb57e18fe3e3e56507a681f7') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING +} diff --git a/extra/xfce4-systemload-plugin/missing_tooltip.diff b/extra/xfce4-systemload-plugin/missing_tooltip.diff new file mode 100644 index 000000000..96f5c1714 --- /dev/null +++ b/extra/xfce4-systemload-plugin/missing_tooltip.diff @@ -0,0 +1,21 @@ +--- panel-plugin/systemload.c 2007-01-17 18:01:09.000000000 +0000 ++++ panel-plugin/systemload.c.new 2009-05-14 17:17:24.001076632 +0000 +@@ -315,11 +315,18 @@ + { + int count; + t_global_monitor *global; ++ GtkSettings *settings; + + tooltips = gtk_tooltips_new (); + g_object_ref (tooltips); + gtk_object_sink (GTK_OBJECT (tooltips)); + ++ /* reduce the default tooltip timeout to be smaller than the update interval otherwise ++ * we won't see tooltips on GTK 2.16 or newer */ ++ 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", UPDATE_TIMEOUT - 10, NULL); ++ + global = g_new(t_global_monitor, 1); + global->plugin = plugin; + global->timeout_id = 0; |