]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix commit 1c6a6010661da96fd105ec42ad2f048df79fabbd
authorGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Wed, 13 Oct 2010 19:56:42 +0000 (21:56 +0200)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Wed, 13 Oct 2010 19:56:42 +0000 (21:56 +0200)
I simply did test in the wrong way.
I added documentation.

src/vikmapslayer.c
src/vikwindow.c

index 0c6a389b90ce45c039e0a2b0d7962a454bd972d7..b39c3c3780a371e1381381f70ef4efdcc7d20362 100644 (file)
@@ -628,7 +628,8 @@ gboolean should_start_autodownload(VikMapsLayer *vml, VikViewport *vvp)
 {
   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) {
index 5f5d44d1c5d17c135d8633b9ffc3321730a01bed..8a3730729fee5f6231f1db64c3addefae322653f 100644 (file)
@@ -1413,6 +1413,18 @@ GtkWidget *vik_window_get_drawmode_button ( VikWindow *vw, VikViewportDrawMode m
   return mode_button;
 }
 
   return mode_button;
 }
 
+/**
+ * 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;