[libwnck/wip/muktupavels/gtk4: 102/109] tasklist: stop using gtk_container_get_border_width
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/gtk4: 102/109] tasklist: stop using gtk_container_get_border_width
- Date: Thu, 13 May 2021 19:30:54 +0000 (UTC)
commit 5a9dd8b81a9cd03e83e47772b7619ac9bec36f38
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun May 21 02:04:31 2017 +0300
tasklist: stop using gtk_container_get_border_width
libwnck/tasklist.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index 5f0efdf..bfae653 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -4420,8 +4420,7 @@ wnck_task_draw (GtkWidget *widget,
gtk_style_context_get_color (context, &color);
gtk_style_context_restore (context);
- x = gtk_widget_get_allocated_width (widget) -
- (gtk_container_get_border_width (GTK_CONTAINER (widget)) + padding.right + ARROW_SIZE);
+ x = gtk_widget_get_allocated_width (widget) - (padding.right + ARROW_SIZE);
y = gtk_widget_get_allocated_height (widget) / 2;
arrow_width = INDICATOR_SIZE + ((INDICATOR_SIZE % 2) - 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]