Added uiContainerUpdate() calls to each SetMargined().

This commit is contained in:
Pietro Gagliardi 2015-05-11 12:42:13 -04:00
parent 20b76fe211
commit a517beccae
6 changed files with 6 additions and 0 deletions

View File

@ -189,6 +189,7 @@ static void tabSetMargined(uiTab *tt, uintmax_t n, int margined)
uiBinSetMargins(page, tabLeftMargin, tabTopMargin, tabRightMargin, tabBottomMargin);
else
uiBinSetMargins(page, 0, 0, 0, 0);
uiContainerUpdate(uiContainer(page));
}
uiTab *uiNewTab(void)

View File

@ -177,6 +177,7 @@ static void windowSetMargined(uiWindow *ww, int margined)
uiBinSetMargins(w->bin, macXMargin, macYMargin, macXMargin, macYMargin);
else
uiBinSetMargins(w->bin, 0, 0, 0, 0);
uiContainerUpdate(uiContainer(w->bin));
}
uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar)

View File

@ -126,6 +126,7 @@ static void tabSetMargined(uiTab *tt, uintmax_t n, int margined)
uiBinSetMargins(page->bin, gtkXMargin, gtkYMargin, gtkXMargin, gtkYMargin);
else
uiBinSetMargins(page->bin, 0, 0, 0, 0);
uiContainerUpdate(page->bin);
}
uiTab *uiNewTab(void)

View File

@ -165,6 +165,7 @@ static void windowSetMargined(uiWindow *ww, int margined)
uiBinSetMargins(w->bin, gtkXMargin, gtkYMargin, gtkXMargin, gtkYMargin);
else
uiBinSetMargins(w->bin, 0, 0, 0, 0);
uiContainerUpdate(uiContainer(w->bin));
}
uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar)

View File

@ -331,6 +331,7 @@ static void tabSetMargined(uiTab *tt, uintmax_t n, int margined)
uiBinSetMargins(page->bin, tabMargin, tabMargin, tabMargin, tabMargin);
else
uiBinSetMargins(page->bin, 0, 0, 0, 0);
uiContainerUpdate(uiContainer(page->bin));
}
uiTab *uiNewTab(void)

View File

@ -227,6 +227,7 @@ static void windowSetMargined(uiWindow *ww, int margined)
uiBinSetMargins(w->bin, windowMargin, windowMargin, windowMargin, windowMargin);
else
uiBinSetMargins(w->bin, 0, 0, 0, 0);
uiContainerUpdate(uiContainer(w->bin));
}
// see http://blogs.msdn.com/b/oldnewthing/archive/2003/09/11/54885.aspx and http://blogs.msdn.com/b/oldnewthing/archive/2003/09/13/54917.aspx