mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
- Fixed function naming problem in WINGs.
This commit is contained in:
@@ -50,6 +50,9 @@ changes since wmaker 0.60.0:
|
|||||||
void *clientData);
|
void *clientData);
|
||||||
WMDeleteInputHandler(WMHandlerID handlerID);
|
WMDeleteInputHandler(WMHandlerID handlerID);
|
||||||
- added progress indicator widget
|
- added progress indicator widget
|
||||||
|
- Changed WMSetWindowUPosition() and WMSetWindowUSize() to
|
||||||
|
WMSetWindowInitialPosition() and WMSetWindowInitialSize() respectively,
|
||||||
|
for better naming conventions.
|
||||||
|
|
||||||
|
|
||||||
changes since wmaker 0.53.0:
|
changes since wmaker 0.53.0:
|
||||||
|
|||||||
@@ -761,9 +761,9 @@ void WMSetWindowMiniwindowImage(WMWindow *win, WMPixmap *pixmap);
|
|||||||
|
|
||||||
void WMSetWindowCloseAction(WMWindow *win, WMAction *action, void *clientData);
|
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);
|
void WMSetWindowMaxSize(WMWindow *win, unsigned width, unsigned height);
|
||||||
|
|
||||||
|
|||||||
@@ -398,7 +398,7 @@ WMRunModalFilePanelForDirectory(WMFilePanel *panel, WMWindow *owner,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
WMSetWindowUPosition(panel->win,
|
WMSetWindowInitialPosition(panel->win,
|
||||||
(scr->rootView->size.width - WMWidgetWidth(panel->win))/2,
|
(scr->rootView->size.width - WMWidgetWidth(panel->win))/2,
|
||||||
(scr->rootView->size.height - WMWidgetHeight(panel->win))/2);
|
(scr->rootView->size.height - WMWidgetHeight(panel->win))/2);
|
||||||
WMSetLabelText(panel->titleLabel, name);
|
WMSetLabelText(panel->titleLabel, name);
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ WMCreateAlertPanel(WMScreen *scrPtr, WMWindow *owner,
|
|||||||
panel->win = WMCreateWindowWithStyle(scrPtr, "alertPanel",
|
panel->win = WMCreateWindowWithStyle(scrPtr, "alertPanel",
|
||||||
WMTitledWindowMask);
|
WMTitledWindowMask);
|
||||||
|
|
||||||
WMSetWindowUPosition(panel->win,
|
WMSetWindowInitialPosition(panel->win,
|
||||||
(scrPtr->rootView->size.width - WMWidgetWidth(panel->win))/2,
|
(scrPtr->rootView->size.width - WMWidgetWidth(panel->win))/2,
|
||||||
(scrPtr->rootView->size.height - WMWidgetHeight(panel->win))/2);
|
(scrPtr->rootView->size.height - WMWidgetHeight(panel->win))/2);
|
||||||
WMSetWindowTitle(panel->win, "");
|
WMSetWindowTitle(panel->win, "");
|
||||||
|
|||||||
@@ -447,7 +447,7 @@ realizeWindow(WMWindow *win)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
WMSetWindowUPosition(WMWindow *win, int x, int y)
|
WMSetWindowInitialPosition(WMWindow *win, int x, int y)
|
||||||
{
|
{
|
||||||
win->flags.upos_set = 1;
|
win->flags.upos_set = 1;
|
||||||
win->upos.x = x;
|
win->upos.x = x;
|
||||||
@@ -459,7 +459,7 @@ WMSetWindowUPosition(WMWindow *win, int x, int y)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
WMSetWindowUSize(WMWindow *win, unsigned width, unsigned height)
|
WMSetWindowInitialSize(WMWindow *win, unsigned width, unsigned height)
|
||||||
{
|
{
|
||||||
win->usize.width = width;
|
win->usize.width = width;
|
||||||
win->usize.height = height;
|
win->usize.height = height;
|
||||||
|
|||||||
@@ -778,7 +778,7 @@ ShowTexturePanel(TexturePanel *panel)
|
|||||||
Display *dpy = WMScreenDisplay(WMWidgetScreen(panel->win));
|
Display *dpy = WMScreenDisplay(WMWidgetScreen(panel->win));
|
||||||
Screen *scr = DefaultScreenOfDisplay(dpy);
|
Screen *scr = DefaultScreenOfDisplay(dpy);
|
||||||
|
|
||||||
WMSetWindowUPosition(panel->win,
|
WMSetWindowInitialPosition(panel->win,
|
||||||
(WidthOfScreen(scr)-WMWidgetWidth(panel->win))/2,
|
(WidthOfScreen(scr)-WMWidgetWidth(panel->win))/2,
|
||||||
(HeightOfScreen(scr)-WMWidgetHeight(panel->win))/2);
|
(HeightOfScreen(scr)-WMWidgetHeight(panel->win))/2);
|
||||||
WMMapWidget(panel->win);
|
WMMapWidget(panel->win);
|
||||||
|
|||||||
Reference in New Issue
Block a user