| 279 | } |
| 280 | |
| 281 | void 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 | |
| 292 | void SetDefaultName(GtkFileChooser* chooser, const char* defaultName) { |
| 293 | if (!defaultName || !*defaultName) return; |
no outgoing calls
no test coverage detected