[Xfce4-commits] [apps/xfce4-taskmanager] 08/11: Always check if the graph is too small to draw it
noreply at xfce.org
noreply at xfce.org
Fri Dec 19 12:44:54 CET 2014
This is an automated email from the git hooks/post-receive script.
peter pushed a commit to branch master
in repository apps/xfce4-taskmanager.
commit cd1309d97f34fdde575e44e40be2653a443a20ca
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Fri Dec 19 12:06:50 2014 +0100
Always check if the graph is too small to draw it
---
src/process-monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/process-monitor.c b/src/process-monitor.c
index 7c8af0c..d0e8d7e 100644
--- a/src/process-monitor.c
+++ b/src/process-monitor.c
@@ -223,10 +223,10 @@ xtm_process_monitor_paint (XtmProcessMonitor *monitor, cairo_t *cr)
#else
width = GTK_WIDGET (monitor)->allocation.width;
height = GTK_WIDGET (monitor)->allocation.height;
+#endif
/* Don't draw anything if the graph is too small */
if (height < 3)
return;
-#endif
/* Paint the graph's background box */
cairo_rectangle (cr, 0.0, 0.0, width, height);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list