summaryrefslogtreecommitdiff
path: root/src/glibext/gloadedpanel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/gloadedpanel.h')
-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);