MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / SetDefaultPath

Function SetDefaultPath

extern/nfd/nfd_gtk.cpp:281–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void SetDefaultPath(GtkFileChooser* chooser, const char* defaultPath) {
282 if (!defaultPath || !*defaultPath) return;
283
284 /* GTK+ manual recommends not specifically setting the default path.
285 We do it anyway in order to be consistent across platforms.
286
287 If consistency with the native OS is preferred, this is the line
288 to comment out. -ml */
289 gtk_file_chooser_set_current_folder(chooser, defaultPath);
290}
291
292void SetDefaultName(GtkFileChooser* chooser, const char* defaultName) {
293 if (!defaultName || !*defaultName) return;

Callers 4

NFD_OpenDialogNFunction · 0.70
NFD_OpenDialogMultipleNFunction · 0.70
NFD_SaveDialogNFunction · 0.70
NFD_PickFolderNFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected