Tue, 14 Nov 2023 00:56:26 -0600
Use g_get_home_dir for default Finch save directories
The only difference with `purple_home_dir` is that the latter uses `PURPLEHOME`
or some `Application Data` path on Windows. Neither of those really make sense
as a save location, so just use the normal home directory calculation.
Testing Done:
Compiled
Reviewed at https://reviews.imfreedom.org/r/2811/
| finch/gntdebug.c | file | annotate | diff | comparison | revisions | |
| finch/gntrequest.c | file | annotate | diff | comparison | revisions |
--- a/finch/gntdebug.c Tue Nov 14 00:52:45 2023 -0600 +++ b/finch/gntdebug.c Tue Nov 14 00:56:26 2023 -0600 @@ -258,7 +258,7 @@ { GntWidget *window = gnt_file_sel_new(); GntFileSel *sel = GNT_FILE_SEL(window); - gnt_file_sel_set_current_location(sel, purple_home_dir()); + gnt_file_sel_set_current_location(sel, g_get_home_dir()); gnt_file_sel_set_suggested_filename(sel, "debug.txt"); g_signal_connect(G_OBJECT(sel), "file_selected", G_CALLBACK(file_save), tv); g_signal_connect(G_OBJECT(sel), "cancelled", G_CALLBACK(gnt_widget_destroy), NULL);
--- a/finch/gntrequest.c Tue Nov 14 00:52:45 2023 -0600 +++ b/finch/gntrequest.c Tue Nov 14 00:56:26 2023 -0600 @@ -807,7 +807,7 @@ data->dialog = window; gnt_box_set_title(GNT_BOX(window), title); - gnt_file_sel_set_current_location(sel, (path && *path) ? path : purple_home_dir()); + gnt_file_sel_set_current_location(sel, (path && *path) ? path : g_get_home_dir()); g_signal_connect(G_OBJECT(sel), "destroy", G_CALLBACK(file_cancel_cb), data);