1 /* |
1 /* |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 * |
3 * |
4 * Copyright 2014 Olaf Wintermann. All rights reserved. |
4 * Copyright 2017 Olaf Wintermann. All rights reserved. |
5 * |
5 * |
6 * Redistribution and use in source and binary forms, with or without |
6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are met: |
7 * modification, are permitted provided that the following conditions are met: |
8 * |
8 * |
9 * 1. Redistributions of source code must retain the above copyright |
9 * 1. Redistributions of source code must retain the above copyright |
479 uic_context_set_document(ctx, document); |
479 uic_context_set_document(ctx, document); |
480 //uic_context_set_document(ctx->parent, document); |
480 //uic_context_set_document(ctx->parent, document); |
481 //ctx->parent->document = document; |
481 //ctx->parent->document = document; |
482 } |
482 } |
483 |
483 |
484 void ui_tab_detach_document(UiContext *ctx, void *document) { |
484 void ui_tab_detach_document(UiContext *ctx) { |
485 uic_context_detach_document(ctx->parent, document); |
485 uic_context_detach_document(ctx->parent); |
486 } |
486 } |
487 |
487 |
488 |
488 |
489 /* |
489 /* |
490 * -------------------- Layout Functions -------------------- |
490 * -------------------- Layout Functions -------------------- |