[gtk+/wip/baedert/drawing: 16/22] scale: Fix mark indicator	allocations
- From: Timm Bäder <baedert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+/wip/baedert/drawing: 16/22] scale: Fix mark indicator	allocations
 
- Date: Sat,  1 Jul 2017 14:57:29 +0000 (UTC)
 
commit fddae18f9f0eb9d7df9386de96e788b9edc869d0
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]