diff options
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index a1d76709..fd8740b4 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -984,6 +984,14 @@ void prependTabPage_Widget(iWidget *tabs, iWidget *page, const char *label, int | |||
984 | addTabPage_Widget_(tabs, front_WidgetAddPos, page, label, key, kmods); | 984 | addTabPage_Widget_(tabs, front_WidgetAddPos, page, label, key, kmods); |
985 | } | 985 | } |
986 | 986 | ||
987 | void moveTabButtonToEnd_Widget(iWidget *tabButton) { | ||
988 | iWidget *buttons = tabButton->parent; | ||
989 | iWidget *tabs = buttons->parent; | ||
990 | removeChild_Widget(buttons, tabButton); | ||
991 | addChild_Widget(buttons, iClob(tabButton)); | ||
992 | arrange_Widget(tabs); | ||
993 | } | ||
994 | |||
987 | iWidget *tabPage_Widget(iWidget *tabs, size_t index) { | 995 | iWidget *tabPage_Widget(iWidget *tabs, size_t index) { |
988 | iWidget *pages = findChild_Widget(tabs, "tabs.pages"); | 996 | iWidget *pages = findChild_Widget(tabs, "tabs.pages"); |
989 | return child_Widget(pages, index); | 997 | return child_Widget(pages, index); |