From a517beccae7c19fce016e04364b908b415aad976 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 11 May 2015 12:42:13 -0400 Subject: [PATCH] Added uiContainerUpdate() calls to each SetMargined(). --- darwin/tab.m | 1 + darwin/window.m | 1 + unix/tab.c | 1 + unix/window.c | 1 + windows/tab.c | 1 + windows/window.c | 1 + 6 files changed, 6 insertions(+) diff --git a/darwin/tab.m b/darwin/tab.m index a2031863..077f75c9 100644 --- a/darwin/tab.m +++ b/darwin/tab.m @@ -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) diff --git a/darwin/window.m b/darwin/window.m index 525a1212..570952c3 100644 --- a/darwin/window.m +++ b/darwin/window.m @@ -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) diff --git a/unix/tab.c b/unix/tab.c index 8ec8f768..a88fc141 100644 --- a/unix/tab.c +++ b/unix/tab.c @@ -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) diff --git a/unix/window.c b/unix/window.c index 559cf89b..c5c278ae 100644 --- a/unix/window.c +++ b/unix/window.c @@ -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) diff --git a/windows/tab.c b/windows/tab.c index bc2e2ca2..29acd1a0 100644 --- a/windows/tab.c +++ b/windows/tab.c @@ -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) diff --git a/windows/window.c b/windows/window.c index 84b71c64..8dab7f1a 100644 --- a/windows/window.c +++ b/windows/window.c @@ -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