summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-29 13:52:26 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-29 13:52:26 (GMT)
commitf6b02ed08bb39257436921154dc617f4a07ca990 (patch)
tree6671e18ba37b9dc8dbd645c37e82ebedd7270322 /src
parent63d012bfab75840b789e144177ca73847ea989e7 (diff)
Updated code to scroll loaded panels from Python.
Diffstat (limited to 'src')
-rw-r--r--src/glibext/gloadedpanel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glibext/gloadedpanel.h b/src/glibext/gloadedpanel.h
index 9d460c7..e1e1e27 100644
--- a/src/glibext/gloadedpanel.h
+++ b/src/glibext/gloadedpanel.h
@@ -75,6 +75,8 @@ typedef enum _ScrollPositionTweak
} ScrollPositionTweak;
+#define IS_VALID_STP(t) (SPT_RAW <= (t) && (t) <= SPT_BOTTOM)
+
/* S'assure qu'un emplacement donné est visible à l'écran. */
void g_loaded_panel_scroll_to_cursor(GLoadedPanel *, const GLineCursor *, ScrollPositionTweak, bool);