[arch-commits] Commit in xfce4-taskmanager/trunk (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Jan 25 02:38:10 UTC 2021
Date: Monday, January 25, 2021 @ 02:38:10
Author: foutrelis
Revision: 406729
upgpkg: xfce4-taskmanager 1.4.0-2: fix window becoming too wide (FS#69140)
Added:
xfce4-taskmanager/trunk/ellipsize-memory-and-swap-labels.patch
Modified:
xfce4-taskmanager/trunk/PKGBUILD
----------------------------------------+
PKGBUILD | 15 ++++++++--
ellipsize-memory-and-swap-labels.patch | 45 +++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-24 22:56:35 UTC (rev 406728)
+++ PKGBUILD 2021-01-25 02:38:10 UTC (rev 406729)
@@ -2,7 +2,7 @@
pkgname=xfce4-taskmanager
pkgver=1.4.0
-pkgrel=1
+pkgrel=2
pkgdesc="Easy to use task manager"
arch=('x86_64')
url="https://docs.xfce.org/apps/xfce4-taskmanager"
@@ -10,9 +10,18 @@
depends=('libwnck3' 'libxmu')
makedepends=('intltool')
groups=('xfce4-goodies')
-source=(https://archive.xfce.org/src/apps/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('655684ddfc15fc09071f78f9fce5439d20bbd2d80ecfc5ba0a08fb38313e7d43')
+source=(https://archive.xfce.org/src/apps/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
+ ellipsize-memory-and-swap-labels.patch)
+sha256sums=('655684ddfc15fc09071f78f9fce5439d20bbd2d80ecfc5ba0a08fb38313e7d43'
+ '74abd16b1ade4fc9e939a0caa9d6630c6c479d19cee71a3615d1ccd6ef0a2bf7')
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # https://gitlab.xfce.org/apps/xfce4-taskmanager/-/issues/32
+ patch -Np1 -i ../ellipsize-memory-and-swap-labels.patch
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"
Added: ellipsize-memory-and-swap-labels.patch
===================================================================
--- ellipsize-memory-and-swap-labels.patch (rev 0)
+++ ellipsize-memory-and-swap-labels.patch 2021-01-25 02:38:10 UTC (rev 406729)
@@ -0,0 +1,45 @@
+From 7005713f906715c4e960796ad135081c59013d75 Mon Sep 17 00:00:00 2001
+From: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
+Date: Mon, 18 Jan 2021 12:05:07 +0100
+Subject: [PATCH] Ellipsize memory and swap labels (Fixes #32)
+
+Also show the full values in a tooltip.
+---
+ src/process-statusbar.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/process-statusbar.c b/src/process-statusbar.c
+index c63465b..64f33e4 100644
+--- a/src/process-statusbar.c
++++ b/src/process-statusbar.c
+@@ -92,9 +92,11 @@ xtm_process_statusbar_init (XtmProcessStatusbar *statusbar)
+ gtk_box_pack_start (GTK_BOX (hbox_cpu), statusbar->label_num_processes, TRUE, FALSE, 0);
+
+ statusbar->label_memory = gtk_label_new (NULL);
++ gtk_label_set_ellipsize (GTK_LABEL (statusbar->label_memory), PANGO_ELLIPSIZE_END);
+ gtk_box_pack_start (GTK_BOX (hbox_mem), statusbar->label_memory, TRUE, FALSE, 0);
+
+ statusbar->label_swap = gtk_label_new (NULL);
++ gtk_label_set_ellipsize (GTK_LABEL (statusbar->label_swap), PANGO_ELLIPSIZE_END);
+ gtk_box_pack_start (GTK_BOX (hbox_mem), statusbar->label_swap, TRUE, FALSE, 0);
+
+ gtk_box_pack_start (GTK_BOX (hbox), hbox_cpu, TRUE, TRUE, 0);
+@@ -146,6 +148,7 @@ xtm_process_statusbar_set_property (GObject *object, guint property_id, const GV
+ g_strlcpy(statusbar->memory, g_value_get_string (value), sizeof(statusbar->memory));
+ text = g_strdup_printf (_("Memory: %s"), statusbar->memory);
+ gtk_label_set_text (GTK_LABEL (statusbar->label_memory), text);
++ gtk_widget_set_tooltip_text (statusbar->label_memory, text);
+ gdk_rgba_parse (&color, "#c22b66");
+ gtk_widget_override_color (statusbar->label_memory, GTK_STATE_NORMAL, &color);
+ g_free (text);
+@@ -155,6 +158,7 @@ xtm_process_statusbar_set_property (GObject *object, guint property_id, const GV
+ g_strlcpy(statusbar->swap, g_value_get_string (value), sizeof(statusbar->swap));
+ text = g_strdup_printf (_("Swap: %s"), statusbar->swap);
+ gtk_label_set_text (GTK_LABEL (statusbar->label_swap), text);
++ gtk_widget_set_tooltip_text (statusbar->label_swap, text);
+ g_free (text);
+ break;
+
+--
+GitLab
+
More information about the arch-commits
mailing list