[recipes] Make timer widget line width scale
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Make timer widget line width scale
- Date: Fri, 24 Feb 2017 05:22:24 +0000 (UTC)
commit 43aabfbba86be6e46297953d1a0bdb71fd1acd02
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 23 14:59:20 2017 -0500
Make timer widget line width scale
We will be using small copies of this, and need a thin
line width there.
src/gr-timer-widget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-timer-widget.c b/src/gr-timer-widget.c
index 45e3f9d..1547492 100644
--- a/src/gr-timer-widget.c
+++ b/src/gr-timer-widget.c
@@ -209,7 +209,7 @@ gr_timer_widget_draw (GtkWidget *widget,
context = gtk_widget_get_style_context (widget);
width = gtk_widget_get_allocated_width (widget);
height = gtk_widget_get_allocated_height (widget);
- line_width = 8;
+ line_width = CLAMP (width / 16, 2, 8);
gtk_render_background (context, cr, 0, 0, width, height);
gtk_render_frame (context, cr, 0, 0, width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]