summaryrefslogtreecommitdiff
path: root/src/ui/widget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-12 22:27:02 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-12 22:27:02 +0200
commit9cdf86dc8dda0ebf777dfdec5c1eeef53371a1ee (patch)
tree340b4bac4c96c9711e4845ff994701176a3dd267 /src/ui/widget.c
parent3e56e0f1ca20d7d0489036ce0f0bca97d596f0d5 (diff)
Cut/copy/paste paste via menus
IssueID #175
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r--src/ui/widget.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 4d319808..4fad3c86 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -1207,6 +1207,15 @@ static void printTree_Widget_(const iWidget *d, int indent) {
1207 } 1207 }
1208} 1208}
1209 1209
1210void raise_Widget(iWidget *d) {
1211 iPtrArray *onTop = onTop_RootData_();
1212 if (d->flags & keepOnTop_WidgetFlag) {
1213 iAssert(indexOf_PtrArray(onTop, d) != iInvalidPos);
1214 removeOne_PtrArray(onTop, d);
1215 pushBack_PtrArray(onTop, d);
1216 }
1217}
1218
1210iBool hasVisibleChildOnTop_Widget(const iWidget *parent) { 1219iBool hasVisibleChildOnTop_Widget(const iWidget *parent) {
1211 iConstForEach(ObjectList, i, parent->children) { 1220 iConstForEach(ObjectList, i, parent->children) {
1212 const iWidget *child = i.object; 1221 const iWidget *child = i.object;