why did i make that macro anyways

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@832 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-12-01 18:16:17 +00:00
commit 01416857b5
3 changed files with 19 additions and 18 deletions

View file

@ -59,7 +59,7 @@
#define MwNfocusInHandler "CfocusIn" /* NULL */ #define MwNfocusInHandler "CfocusIn" /* NULL */
#define MwNfocusOutHandler "CfocusOut" /* NULL */ #define MwNfocusOutHandler "CfocusOut" /* NULL */
#define MwNfileChosenHandler "CfileChosen" /* char* */ #define MwNfileChosenHandler "CfileChosen" /* char* */
#define MwNdirectoryChosenHandler MwNfileChosenHandler #define MwNdirectoryChosenHandler "CdirectoryChosen" /* char* */
#define MwNcolorChosenHandler "CcolorChosen" /* MwRGB* */ #define MwNcolorChosenHandler "CcolorChosen" /* MwRGB* */
#define MwNdrawHandler "Cdraw" /* NULL */ #define MwNdrawHandler "Cdraw" /* NULL */

View file

@ -100,6 +100,7 @@
<handler name="focusIn" /> <handler name="focusIn" />
<handler name="focusOut" /> <handler name="focusOut" />
<handler name="fileChosen" /> <handler name="fileChosen" />
<handler name="directoryChosen" />
<handler name="colorChosen" /> <handler name="colorChosen" />
<handler name="draw" /> <handler name="draw" />
</properties> </properties>

View file

@ -98,7 +98,7 @@ static void files_activate(MwWidget handle, void* user, void* call) {
char* p; char* p;
p = MwDirectoryJoin(fc->path, fc->sorted_entries[MwGetInteger(fc->files, MwNvalue) - 1]->name); p = MwDirectoryJoin(fc->path, fc->sorted_entries[MwGetInteger(fc->files, MwNvalue) - 1]->name);
MwDispatchUserHandler(handle->parent, MwNfileChosenHandler, p); MwDispatchUserHandler(handle->parent, fc->dir_only ? MwNdirectoryChosenHandler : MwNfileChosenHandler, p);
free(p); free(p);
okay(fc->okay, NULL, NULL); okay(fc->okay, NULL, NULL);