diff --git a/libleptongui/include/window.h b/libleptongui/include/window.h index 42f383c468..b4bc863714 100644 --- a/libleptongui/include/window.h +++ b/libleptongui/include/window.h @@ -578,4 +578,10 @@ schematic_window_get_scrollbars_flag (SchematicWindow *w_current); void schematic_window_set_scrollbars_flag (SchematicWindow *w_current, int val); +int +schematic_window_get_scrollpan_steps (SchematicWindow *w_current); + +void +schematic_window_set_scrollpan_steps (SchematicWindow *w_current, + int val); G_END_DECLS diff --git a/libleptongui/src/window.c b/libleptongui/src/window.c index 1f01a5e95a..6dae284c17 100644 --- a/libleptongui/src/window.c +++ b/libleptongui/src/window.c @@ -2229,3 +2229,32 @@ schematic_window_set_scrollbars_flag (SchematicWindow *w_current, w_current->scrollbars_flag = val; } + + +/*! \brief Get schematic window's field 'scrollpan_steps'. + * + * \param [in] w_current The schematic window. + * \return The value of the field 'scrollpan_steps'. + */ +int +schematic_window_get_scrollpan_steps (SchematicWindow *w_current) +{ + g_return_val_if_fail (w_current != NULL, 8); + + return w_current->scrollpan_steps; +} + + +/*! \brief Set schematic window's field 'scrollpan_steps'. + * + * \param [in] w_current The schematic window. + * \param [in] val The new value of the field 'scrollpan_steps'. + */ +void +schematic_window_set_scrollpan_steps (SchematicWindow *w_current, + int val) +{ + g_return_if_fail (w_current != NULL); + + w_current->scrollpan_steps = val; +}