Mercurial > audlegacy
changeset 3051:befb8b7df9e6
correct sliders
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Thu, 12 Jul 2007 16:40:37 +0200 |
parents | a4288aa638b8 |
children | b1b48ea20c16 |
files | src/audacious/ui_skinned_horizontal_slider.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_horizontal_slider.c Thu Jul 12 15:34:11 2007 +0200 +++ b/src/audacious/ui_skinned_horizontal_slider.c Thu Jul 12 16:40:37 2007 +0200 @@ -196,8 +196,7 @@ attributes.window_type = GDK_WINDOW_CHILD; attributes.event_mask = gtk_widget_get_events(widget); attributes.event_mask |= GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | - GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | - GDK_POINTER_MOTION_HINT_MASK; + GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK; attributes.visual = gtk_widget_get_visual(widget); attributes.colormap = gtk_widget_get_colormap(widget); @@ -340,7 +339,7 @@ if (hs->pressed) { gint x; - x = event->x; + x = event->x - priv->knob_width / 2; priv->position = x; if (priv->position < priv->min)