Commit 02d23eff authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Adrien Plazas

paginator: Only notify properties if value changed

parent 388e73ef
......@@ -970,6 +970,11 @@ hdy_paginator_set_interactive (HdyPaginator *self,
g_return_if_fail (HDY_IS_PAGINATOR (self));
interactive = !!interactive;
if (hdy_swipe_tracker_get_enabled (self->tracker) == interactive)
hdy_swipe_tracker_set_enabled (self->tracker, interactive);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_INTERACTIVE]);
......@@ -1053,6 +1058,9 @@ hdy_paginator_set_indicator_spacing (HdyPaginator *self,
g_return_if_fail (HDY_IS_PAGINATOR (self));
if (self->indicator_spacing == spacing)
self->indicator_spacing = spacing;
gtk_box_set_spacing (self->box, spacing);
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