mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
- Fixed focus handling for windows that set WM_HINTS.take_focus = False.
- Misc fixes. - Improved a bit the python wrapper. - Build po files before 'make install'
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
// This cleans up the char ** array we mallocd before the function call
|
||||
// This cleans up the char ** array we malloc-ed before the function call
|
||||
%typemap(python, freearg) char ** {
|
||||
wfree($1);
|
||||
}
|
||||
@@ -95,7 +95,7 @@
|
||||
$1 = PyFile_AsFile($input);
|
||||
}
|
||||
|
||||
/* These are for freeing the return of functions that need to be freed
|
||||
/* These are for free-ing the return of functions that need to be freed
|
||||
* before returning control to python. */
|
||||
%typemap(python, ret) char* WMGetTextFieldText { wfree($1); };
|
||||
|
||||
@@ -173,6 +173,7 @@
|
||||
|
||||
|
||||
//%rename WMScreenMainLoop _WMScreenMainLoop;
|
||||
//%rename(_WMScreenMainLoop) WMScreenMainLoop;
|
||||
//%rename WMRunModalLoop _WMRunModalLoop;
|
||||
|
||||
|
||||
@@ -529,14 +530,34 @@
|
||||
%}
|
||||
|
||||
|
||||
/* ignore structures we will not use */
|
||||
%ignore ConnectionDelegate;
|
||||
|
||||
/* ignore functions we don't need */
|
||||
// should we ignore vararg functions, or just convert them to functions with
|
||||
// a fixed number of parameters?
|
||||
%varargs(char*) wmessage;
|
||||
//%ignore wmessage;
|
||||
%ignore wwarning;
|
||||
%ignore wfatal;
|
||||
%ignore wsyserror;
|
||||
%ignore wsyserrorwithcode;
|
||||
%ignore WMCreatePLArray;
|
||||
%ignore WMCreatePLDictionary;
|
||||
|
||||
%apply int *INPUT { int *argc };
|
||||
|
||||
#define Bool int
|
||||
|
||||
%include "WINGs/WUtil.h"
|
||||
|
||||
/* ignore structures we will not use */
|
||||
|
||||
/* ignore functions we don't need */
|
||||
|
||||
%include "WINGs/WINGs.h"
|
||||
|
||||
|
||||
%{
|
||||
void
|
||||
WHandleEvents()
|
||||
@@ -558,6 +579,7 @@ WHandleEvents()
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
/* rewrite functions originally defined as macros */
|
||||
%inline %{
|
||||
#undef WMDuplicateArray
|
||||
|
||||
Reference in New Issue
Block a user