ui/motif/container.c

changeset 76
3782827378ab
parent 65
4697592e24ba
child 91
c13e344fa55f
--- a/ui/motif/container.c	Wed Jan 21 12:29:03 2015 +0100
+++ b/ui/motif/container.c	Wed Jan 21 20:22:27 2015 +0100
@@ -62,6 +62,7 @@
 
 void ui_frame_container_add(UiContainer *ct, Widget widget) {
     ui_reset_layout(ct->layout);
+    ct->current = widget;
 }
 
 
@@ -175,6 +176,7 @@
     bc->prev_widget = widget;
     
     ui_reset_layout(ct->layout);
+    ct->current = widget;
 }
 
 UiContainer* ui_grid_container(UiObject *obj, Widget form) {
@@ -214,6 +216,7 @@
     }
     
     ui_reset_layout(ct->layout);
+    ct->current = widget;
 }
 
 static void ui_grid_resize(Widget widget, XtPointer udata, XtPointer cdata) {
@@ -336,6 +339,7 @@
     
     ui_select_tab(ct->widget, 0);
     ui_reset_layout(ct->layout);
+    ct->current = widget;
 }
 
 UIWIDGET ui_box(UiObject *obj, UiBoxOrientation orientation) {

mercurial