From 4dabd2ec8c544294e377f29ac5321e845b88d64c Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 17 Sep 1999 16:42:36 +0000 Subject: [PATCH] - Fixed function naming problem in WINGs. --- WINGs/ChangeLog | 3 +++ WINGs/WINGs.h | 4 ++-- WINGs/wfilepanel.c | 2 +- WINGs/wpanel.c | 2 +- WINGs/wwindow.c | 4 ++-- WPrefs.app/TexturePanel.c | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/WINGs/ChangeLog b/WINGs/ChangeLog index 71b75fb4..cc42654c 100644 --- a/WINGs/ChangeLog +++ b/WINGs/ChangeLog @@ -50,6 +50,9 @@ changes since wmaker 0.60.0: void *clientData); WMDeleteInputHandler(WMHandlerID handlerID); - added progress indicator widget +- Changed WMSetWindowUPosition() and WMSetWindowUSize() to + WMSetWindowInitialPosition() and WMSetWindowInitialSize() respectively, + for better naming conventions. changes since wmaker 0.53.0: diff --git a/WINGs/WINGs.h b/WINGs/WINGs.h index 188cb4b7..b0bb04d0 100644 --- a/WINGs/WINGs.h +++ b/WINGs/WINGs.h @@ -761,9 +761,9 @@ void WMSetWindowMiniwindowImage(WMWindow *win, WMPixmap *pixmap); void WMSetWindowCloseAction(WMWindow *win, WMAction *action, void *clientData); -void WMSetWindowUPosition(WMWindow *win, int x, int y); +void WMSetWindowInitialPosition(WMWindow *win, int x, int y); -void WMSetWindowUSize(WMWindow *win, unsigned width, unsigned height); +void WMSetWindowInitialSize(WMWindow *win, unsigned width, unsigned height); void WMSetWindowMaxSize(WMWindow *win, unsigned width, unsigned height); diff --git a/WINGs/wfilepanel.c b/WINGs/wfilepanel.c index 740d42c5..1439a798 100644 --- a/WINGs/wfilepanel.c +++ b/WINGs/wfilepanel.c @@ -398,7 +398,7 @@ WMRunModalFilePanelForDirectory(WMFilePanel *panel, WMWindow *owner, break; } - WMSetWindowUPosition(panel->win, + WMSetWindowInitialPosition(panel->win, (scr->rootView->size.width - WMWidgetWidth(panel->win))/2, (scr->rootView->size.height - WMWidgetHeight(panel->win))/2); WMSetLabelText(panel->titleLabel, name); diff --git a/WINGs/wpanel.c b/WINGs/wpanel.c index 6bd39795..9ffe1ed9 100644 --- a/WINGs/wpanel.c +++ b/WINGs/wpanel.c @@ -95,7 +95,7 @@ WMCreateAlertPanel(WMScreen *scrPtr, WMWindow *owner, panel->win = WMCreateWindowWithStyle(scrPtr, "alertPanel", WMTitledWindowMask); - WMSetWindowUPosition(panel->win, + WMSetWindowInitialPosition(panel->win, (scrPtr->rootView->size.width - WMWidgetWidth(panel->win))/2, (scrPtr->rootView->size.height - WMWidgetHeight(panel->win))/2); WMSetWindowTitle(panel->win, ""); diff --git a/WINGs/wwindow.c b/WINGs/wwindow.c index 5aefd9eb..bbacded5 100644 --- a/WINGs/wwindow.c +++ b/WINGs/wwindow.c @@ -447,7 +447,7 @@ realizeWindow(WMWindow *win) void -WMSetWindowUPosition(WMWindow *win, int x, int y) +WMSetWindowInitialPosition(WMWindow *win, int x, int y) { win->flags.upos_set = 1; win->upos.x = x; @@ -459,7 +459,7 @@ WMSetWindowUPosition(WMWindow *win, int x, int y) void -WMSetWindowUSize(WMWindow *win, unsigned width, unsigned height) +WMSetWindowInitialSize(WMWindow *win, unsigned width, unsigned height) { win->usize.width = width; win->usize.height = height; diff --git a/WPrefs.app/TexturePanel.c b/WPrefs.app/TexturePanel.c index f8a06f48..74464d1f 100644 --- a/WPrefs.app/TexturePanel.c +++ b/WPrefs.app/TexturePanel.c @@ -778,7 +778,7 @@ ShowTexturePanel(TexturePanel *panel) Display *dpy = WMScreenDisplay(WMWidgetScreen(panel->win)); Screen *scr = DefaultScreenOfDisplay(dpy); - WMSetWindowUPosition(panel->win, + WMSetWindowInitialPosition(panel->win, (WidthOfScreen(scr)-WMWidgetWidth(panel->win))/2, (HeightOfScreen(scr)-WMWidgetHeight(panel->win))/2); WMMapWidget(panel->win);