Search
lxdream.org :: lxdream/src/gui.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui.h
changeset 1036:af7b0c5905dd
prev1019:87f191f92f8f
next1041:5fcc39857c5c
author nkeynes
date Wed Jun 24 06:06:40 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change Support shell substitutions in config paths
Keep track of last folder in file dialogs
Fix out-of-dateness in GTK path dialog
file annotate diff log raw
1.1 --- a/src/gui.h Wed Jun 03 10:29:16 2009 +0000
1.2 +++ b/src/gui.h Wed Jun 24 06:06:40 2009 +0000
1.3 @@ -84,6 +84,29 @@
1.4 */
1.5 void gui_do_later( do_later_callback_t func );
1.6
1.7 +
1.8 +/******************* GUI helper functions *****************/
1.9 +/* The following functions effectively track the current path for each of the
1.10 + * 3 main categories (save, vmu, and disc/binary loading) independently. They
1.11 + * default to the config values, but can be updated continuously without
1.12 + * writing back to the config.
1.13 + */
1.14 +const gchar *gui_get_configurable_path(int key);
1.15 +void gui_set_configurable_path( int key, const gchar *path );
1.16 +
1.17 +/**
1.18 + * Notify the helper functions that the config paths have changed, in which
1.19 + * event they will revert to the config-specified versions.
1.20 + */
1.21 +void gui_config_paths_changed();
1.22 +
1.23 +/**
1.24 + * Return an absolute path for the given input path, as a newly allocated
1.25 + * string. If the input path is already absolute, the returned string will
1.26 + * be identical to the input string.
1.27 + */
1.28 +gchar *get_absolute_path( const gchar *path );
1.29 +
1.30 #ifdef __cplusplus
1.31 }
1.32 #endif
.