[gtk+/gtk-3-20] range: Simplify highlight allocation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] range: Simplify highlight allocation
- Date: Sat, 26 Mar 2016 17:52:49 +0000 (UTC)
commit bdb146cce5e1231c78fb35cdf3d50542a0e70ca4
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 26 13:50:42 2016 -0400
range: Simplify highlight allocation
Since we are really only interested in the center point of the
slider allocation, the pre-computed slider geometry is perfectly
fine, just use it always. This avoids the complication with
gadget visibility.
gtk/gtkrange.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 62d8f9d..0408a30 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2006,8 +2006,6 @@ gtk_range_allocate_trough (GtkCssGadget *gadget,
{
GtkAllocation highlight_alloc, highlight_clip;
- if (gtk_css_gadget_get_visible (priv->slider_gadget))
- gtk_css_gadget_get_content_allocation (priv->slider_gadget, &slider_alloc, NULL);
highlight_alloc = *allocation;
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]