I simply did test in the wrong way.
I added documentation.
{
const VikCoord *center = vik_viewport_get_center ( vvp );
{
const VikCoord *center = vik_viewport_get_center ( vvp );
- if (!vik_window_get_pan_move (VIK_GTK_WINDOW_FROM_WIDGET(GTK_WIDGET(vvp))))
+ if (vik_window_get_pan_move (VIK_GTK_WINDOW_FROM_WIDGET(GTK_WIDGET(vvp))))
+ /* D'n'D pan in action: do not download */
return FALSE;
if (vml->last_center == NULL) {
return FALSE;
if (vml->last_center == NULL) {
+/**
+ * vik_window_get_pan_move:
+ * @vw: some VikWindow
+ *
+ * Retrieves @vw's pan_move.
+ *
+ * Should be removed as soon as possible.
+ *
+ * Returns: @vw's pan_move
+ *
+ * Since: 0.9.96
+ **/
gboolean vik_window_get_pan_move ( VikWindow *vw )
{
return vw->pan_move;
gboolean vik_window_get_pan_move ( VikWindow *vw )
{
return vw->pan_move;