motif tabview fix

Thu, 20 Aug 2015 17:14:27 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 20 Aug 2015 17:14:27 +0200
changeset 93
5223de7979e2
parent 92
d56175dd931e
child 94
d51e334c1439

motif tabview fix

ui/motif/container.c file | annotate | diff | comparison | revisions
--- a/ui/motif/container.c	Wed Aug 19 12:28:22 2015 +0200
+++ b/ui/motif/container.c	Thu Aug 20 17:14:27 2015 +0200
@@ -481,7 +481,6 @@
     int height = 0;
     XtVaGetValues(widget, XmNwidth, &width, XmNheight, &height, NULL);
     int button_width = width / 4;
-    int button_height = 0;
     int x = 0;
     UCX_FOREACH(elm, v->tabs) {
         UiTab *tab = elm->data;
@@ -491,14 +490,13 @@
                 XmNy, 0,
                 XmNwidth,
                 button_width,
-                XmNheight,
-                v->height,
+                
                 NULL);
         x += button_width;
     }
     
     if(height <= v->height) {
-        XtVaSetValues(widget, XmNheight, v->height + (v->height/7), NULL);
+        XtVaSetValues(widget, XmNheight, v->height + 4, NULL);
     }
 }
 
@@ -638,6 +636,7 @@
                 XmNheight,
                 &v->height,
                 NULL);
+        v->height += 2; // border
     }
     
     ui_change_tab(v, tab);

mercurial