[gtk+] scale: Fix mark indicator allocations
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scale: Fix mark indicator allocations
- Date: Thu, 20 Jul 2017 01:55:44 +0000 (UTC)
commit 5bb355f06f8b7b9914d13caec7c9a6215c7c35fb
Author: Timm Bäder <mail baedert org>
Date: Fri Jun 30 12:40:40 2017 +0200
scale: Fix mark indicator allocations
gtk/gtkscale.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 75fd355..4ee9411 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -432,7 +432,7 @@ gtk_scale_allocate_mark (GtkGizmo *gizmo,
if (orientation == GTK_ORIENTATION_HORIZONTAL)
{
- indicator_alloc.x = mark->stop_position - indicator_width / 2;
+ indicator_alloc.x = indicator_width / 2;
if (mark->position == GTK_POS_TOP)
indicator_alloc.y = allocation->y + allocation->height - indicator_height;
else
@@ -446,7 +446,7 @@ gtk_scale_allocate_mark (GtkGizmo *gizmo,
indicator_alloc.x = allocation->x + allocation->width - indicator_width;
else
indicator_alloc.x = allocation->x;
- indicator_alloc.y = mark->stop_position - indicator_height / 2;
+ indicator_alloc.y = indicator_height / 2;
indicator_alloc.width = indicator_width;
indicator_alloc.height = indicator_height;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]