[gtk+] Revert "range: use border box for slider area"
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Revert "range: use border box for slider area"
- Date: Sun, 6 Mar 2016 03:09:35 +0000 (UTC)
commit 6efe1f411a809b04836d13995b1fccbf32f6d092
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Mar 5 18:56:14 2016 -0800
Revert "range: use border box for slider area"
Since it causes problems with event coordinates.
This reverts commit 0883ff5eedf73b1197f2a49fb7e55ce227917335.
gtk/gtkrange.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 66cf084..059f3c7 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -1361,7 +1361,7 @@ gtk_range_get_slider_range (GtkRange *range,
priv = range->priv;
- gtk_css_gadget_get_border_box (priv->slider_gadget, &slider_alloc);
+ gtk_css_gadget_get_margin_box (priv->slider_gadget, &slider_alloc);
if (priv->orientation == GTK_ORIENTATION_VERTICAL)
{
@@ -2537,7 +2537,7 @@ coord_to_value (GtkRange *range,
gint slider_length;
GtkAllocation slider_alloc, trough_alloc;
- gtk_css_gadget_get_border_box (priv->slider_gadget, &slider_alloc);
+ gtk_css_gadget_get_margin_box (priv->slider_gadget, &slider_alloc);
gtk_css_gadget_get_content_box (priv->trough_gadget, &trough_alloc);
if (priv->orientation == GTK_ORIENTATION_VERTICAL)
@@ -2580,7 +2580,7 @@ gtk_range_key_press (GtkWidget *widget,
device = gdk_event_get_device ((GdkEvent *) event);
device = gdk_device_get_associated_device (device);
- gtk_css_gadget_get_border_box (priv->slider_gadget, &slider_alloc);
+ gtk_css_gadget_get_margin_box (priv->slider_gadget, &slider_alloc);
if (gtk_gesture_is_active (priv->drag_gesture) &&
device == gtk_gesture_get_device (priv->drag_gesture) &&
@@ -2640,7 +2640,7 @@ gtk_range_long_press_gesture_pressed (GtkGestureLongPress *gesture,
if (priv->mouse_location == MOUSE_SLIDER && !priv->zoom)
{
- gtk_css_gadget_get_border_box (priv->slider_gadget, &slider_alloc);
+ gtk_css_gadget_get_margin_box (priv->slider_gadget, &slider_alloc);
update_initial_slider_position (range, x, y, &slider_alloc);
update_zoom_state (range, TRUE);
}
@@ -2681,7 +2681,7 @@ gtk_range_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
priv->mouse_y = y;
gtk_range_update_mouse_location (range);
- gtk_css_gadget_get_border_box (priv->slider_gadget, &slider_alloc);
+ gtk_css_gadget_get_margin_box (priv->slider_gadget, &slider_alloc);
g_object_get (gtk_widget_get_settings (widget),
"gtk-primary-button-warps-slider", &primary_warps,
@@ -2838,7 +2838,7 @@ update_slider_position (GtkRange *range,
gint i;
GtkAllocation slider_alloc, trough_alloc;
- gtk_css_gadget_get_border_box (priv->slider_gadget, &slider_alloc);
+ gtk_css_gadget_get_margin_box (priv->slider_gadget, &slider_alloc);
gtk_css_gadget_get_margin_box (priv->trough_gadget, &trough_alloc);
if (priv->zoom)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]