From b49091b8979262f9b69c06a61dff0bee6abe7974 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 22 Apr 2016 20:03:10 -0400 Subject: [PATCH] Migrated label.c and separator.c. --- windows/{label.c => label.cpp} | 6 +++--- windows/{separator.c => separator.cpp} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename windows/{label.c => label.cpp} (92%) rename windows/{separator.c => separator.cpp} (96%) diff --git a/windows/label.c b/windows/label.cpp similarity index 92% rename from windows/label.c rename to windows/label.cpp index 0bdff1bb..0a02827a 100644 --- a/windows/label.c +++ b/windows/label.cpp @@ -1,5 +1,5 @@ // 11 april 2015 -#include "uipriv_windows.h" +#include "uipriv_windows.hpp" struct uiLabel { uiWindowsControl c; @@ -24,12 +24,12 @@ static void minimumSize(uiWindowsControl *c, uiWindowsSizing *d, intmax_t *width char *uiLabelText(uiLabel *l) { - return uiWindowsUtilText(l->hwnd); + return uiWindowsWindowText(l->hwnd); } void uiLabelSetText(uiLabel *l, const char *text) { - uiWindowsUtilSetText(l->hwnd, text); + uiWindowsWindowSetText(l->hwnd, text); // changing the text might necessitate a change in the label's size uiWindowsControlQueueRelayout(uiWindowsControl(l)); } diff --git a/windows/separator.c b/windows/separator.cpp similarity index 96% rename from windows/separator.c rename to windows/separator.cpp index 94dc8961..153c1b8d 100644 --- a/windows/separator.c +++ b/windows/separator.cpp @@ -1,5 +1,5 @@ // 20 may 2015 -#include "uipriv_windows.h" +#include "uipriv_windows.hpp" // references: // - http://stackoverflow.com/questions/2892703/how-do-i-draw-separators