mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-13 12:25:53 +01:00
many bug fixes, finished some delegate code, updated menu file bug from EXEC
to SHEXEC, updated french translations
This commit is contained in:
@@ -38,9 +38,11 @@ static void handleViewportEvents(XEvent *event, void *data);
|
||||
static void resizeScrollView();
|
||||
|
||||
|
||||
W_ViewProcedureTable _ScrollViewViewProcedures = {
|
||||
W_ViewDelegate _ScrollViewViewDelegate = {
|
||||
NULL,
|
||||
NULL,
|
||||
resizeScrollView,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -67,7 +69,10 @@ WMCreateScrollView(WMWidget *parent)
|
||||
free(sPtr);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sPtr->view->self = sPtr;
|
||||
|
||||
sPtr->view->delegate = &_ScrollViewViewDelegate;
|
||||
|
||||
sPtr->viewport->flags.mapWhenRealized = 1;
|
||||
|
||||
WMCreateEventHandler(sPtr->view, StructureNotifyMask|ExposureMask,
|
||||
@@ -171,11 +176,9 @@ reorganizeInterior(WMScrollView *sPtr)
|
||||
|
||||
|
||||
static void
|
||||
resizeScrollView(WMScrollView *sPtr, unsigned int width, unsigned int height)
|
||||
resizeScrollView(W_ViewDelegate *self, WMView *view)
|
||||
{
|
||||
W_ResizeView(sPtr->view, width, height);
|
||||
|
||||
reorganizeInterior(sPtr);
|
||||
reorganizeInterior(view->self);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user