diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-09-19 00:36:25 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-09-19 00:36:25 +0200 |
commit | 5979ab2eb2a9a66ceb1d51c921691874f6372296 (patch) | |
tree | 3dde30184acc975d6f2b461a65f3051e1985f228 /src/libui_sdl/libui/unix/stddialogs.c | |
parent | f30e19a2ec8dff11180a7a101a1368eb4a2d6d08 (diff) |
libui: fix bug with filepicker filters under GTK. add skeleton for bitmaps. add the right cmake shit.
Diffstat (limited to 'src/libui_sdl/libui/unix/stddialogs.c')
-rw-r--r-- | src/libui_sdl/libui/unix/stddialogs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libui_sdl/libui/unix/stddialogs.c b/src/libui_sdl/libui/unix/stddialogs.c index edce773..9d7b62a 100644 --- a/src/libui_sdl/libui/unix/stddialogs.c +++ b/src/libui_sdl/libui/unix/stddialogs.c @@ -38,6 +38,7 @@ static char *filedialog(GtkWindow *parent, GtkFileChooserAction mode, const gcha { if (*j == ';') { + *j = '\0'; gtk_file_filter_add_pattern(filter, fp); fp = j+1; } @@ -47,7 +48,7 @@ static char *filedialog(GtkWindow *parent, GtkFileChooserAction mode, const gcha break; } } - + printf("add filter\n"); gtk_file_chooser_add_filter(fc, filter); } else |