Commit 4c33645a authored by Benjamin Otte's avatar Benjamin Otte

range: Implement :hover for the whole widget

parent 116cc531
......@@ -3280,6 +3280,11 @@ gtk_range_update_mouse_location (GtkRange *range)
{
gtk_range_queue_draw_location (range, old);
gtk_range_queue_draw_location (range, priv->mouse_location);
if (priv->mouse_location == MOUSE_OUTSIDE)
gtk_widget_unset_state_flags (widget, GTK_STATE_FLAG_PRELIGHT);
else
gtk_widget_set_state_flags (widget, GTK_STATE_FLAG_PRELIGHT, FALSE);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment