From: "Rodolfo García Peñas (kix)" <[email protected]>
>From the BALATON Zoltan comment:
If the P in WINGsP.h stands for Private then no files outside of WINGs
should include it. If WINGsConfiguration is an internal structure of
WINGs then only accessor methods should be used outside of WINGs.
This patch uses the new functions to read the WINGs configuration, not
using the internal library data.
---
src/window.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/window.c b/src/window.c
index b6f2c2f..cc2cd25 100644
--- a/src/window.c
+++ b/src/window.c
@@ -36,7 +36,7 @@
#include <math.h>
/* For getting mouse wheel mappings from WINGs */
-#include <WINGs/WINGsP.h>
+#include <WINGs/WINGs.h>
#include "WindowMaker.h"
#include "GNUstep.h"
@@ -2734,9 +2734,9 @@ static void titlebarDblClick(WCoreWindow *sender, void
*data, XEvent *event)
wHideOtherApplications(wwin);
} else if (event->xbutton.button == Button2) {
wSelectWindow(wwin, !wwin->flags.selected);
- } else if (event->xbutton.button == WINGsConfiguration.mouseWheelUp) {
+ } else if (event->xbutton.button == W_getconf_mouseWheelUp()) {
wShadeWindow(wwin);
- } else if (event->xbutton.button == WINGsConfiguration.mouseWheelDown) {
+ } else if (event->xbutton.button == W_getconf_mouseWheelDown()) {
wUnshadeWindow(wwin);
}
}
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].