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:
NishiOwO
2025-12-01 18:16:17 +00:00
parent 9831c033fb
commit 01416857b5
3 changed files with 19 additions and 18 deletions

View File

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

View File

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

View File

@@ -98,7 +98,7 @@ static void files_activate(MwWidget handle, void* user, void* call) {
char* p;
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);
okay(fc->okay, NULL, NULL);