mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 22:25:56 +01:00
Updating to version 0.20.2
Many bug fixes.
This commit is contained in:
@@ -243,6 +243,9 @@ WMGetSavePanel(WMScreen *scrPtr)
|
||||
void
|
||||
WMFreeFilePanel(WMFilePanel *panel)
|
||||
{
|
||||
if (panel == WMWidgetScreen(panel->win)->sharedSavePanel) {
|
||||
WMWidgetScreen(panel->win)->sharedSavePanel = NULL;
|
||||
}
|
||||
if (panel == WMWidgetScreen(panel->win)->sharedOpenPanel) {
|
||||
WMWidgetScreen(panel->win)->sharedOpenPanel = NULL;
|
||||
}
|
||||
@@ -501,8 +504,12 @@ getCurrentFileName(WMFilePanel *panel)
|
||||
if (path[len-1]=='/') {
|
||||
file = WMGetTextFieldText(panel->fileField);
|
||||
tmp = wmalloc(strlen(path)+strlen(file)+8);
|
||||
strcpy(tmp, path);
|
||||
strcat(tmp, file);
|
||||
if (file[0]!='/') {
|
||||
strcpy(tmp, path);
|
||||
strcat(tmp, file);
|
||||
} else
|
||||
strcpy(tmp, file);
|
||||
|
||||
free(file);
|
||||
free(path);
|
||||
return tmp;
|
||||
|
||||
Reference in New Issue
Block a user