aboutsummaryrefslogtreecommitdiff
path: root/include/Tabs.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Tabs.hpp')
-rw-r--r--include/Tabs.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Tabs.hpp b/include/Tabs.hpp
index b7d8de6..51a7e9d 100644
--- a/include/Tabs.hpp
+++ b/include/Tabs.hpp
@@ -33,7 +33,7 @@ namespace QuickMedia {
void set_selected(int index);
int get_selected() const;
- std::function<void(int)> on_change_tab = nullptr;
+ std::function<void(int prev_tab, int new_tab)> on_change_tab = nullptr;
private:
void move_selected_tab(int new_tab);
float tab_index_to_x_offset(int index);