[libwnck/wip/muktupavels/gtk4: 6/13] 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: 6/13] tasklist: stop using gtk_container_get_border_width
- Date: Sun, 21 May 2017 00:12:48 +0000 (UTC)
commit 15db2ab14316db6ca1482066b9bfdf727a3d5f17
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 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index 06d469f..b33e587 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -3930,8 +3930,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]