diff options
Diffstat (limited to 'gtk/src/presets.h')
-rw-r--r-- | gtk/src/presets.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gtk/src/presets.h b/gtk/src/presets.h index e3e126703..845160ef7 100644 --- a/gtk/src/presets.h +++ b/gtk/src/presets.h @@ -3,12 +3,12 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA @@ -19,12 +19,15 @@ void ghb_settings_save(signal_user_data_t *ud, const gchar *name); void ghb_presets_load(signal_user_data_t *ud); void ghb_update_from_preset(signal_user_data_t *ud, const gchar *key); -void ghb_prefs_load(signal_user_data_t *ud); -void ghb_settings_init(signal_user_data_t *ud); +void ghb_settings_init(GValue *settings, const char *name); void ghb_settings_close(); +void ghb_globals_to_ui(signal_user_data_t *ud); +void ghb_prefs_load(signal_user_data_t *ud); void ghb_prefs_to_ui(signal_user_data_t *ud); void ghb_prefs_save(GValue *settings); void ghb_pref_save(GValue *settings, const gchar *key); +void ghb_pref_set(GValue *settings, const gchar *key); +void ghb_prefs_store(void); void ghb_save_queue(GValue *queue); GValue* ghb_load_queue(); GValue* ghb_load_old_queue(int pid); @@ -33,19 +36,19 @@ void ghb_remove_old_queue_file(int pid); gchar* ghb_get_user_config_dir(gchar *subdir); void ghb_settings_to_ui(signal_user_data_t *ud, GValue *dict); void ghb_clear_presets_selection(signal_user_data_t *ud); -void ghb_select_preset(GtkBuilder *builder, - const GValue *preset); +void ghb_select_preset(GtkBuilder *builder, const GValue *preset); void ghb_select_default_preset(GtkBuilder *builder); void ghb_presets_list_init(signal_user_data_t *ud, gint *indices, gint len); GValue* ghb_parse_preset_path(const gchar *path); gchar* ghb_preset_path_string(const GValue *path); gboolean ghb_preset_is_custom(void); -void ghb_prefs_store(void); -void ghb_pref_set(GValue *settings, const gchar *key); gboolean ghb_lock_file(const gchar *name); -void ghb_refresh_preset(signal_user_data_t *ud); int ghb_find_pid_file(); void ghb_unlink_pid_file(int pid); void ghb_write_pid_file(); +GValue* ghb_get_current_preset(signal_user_data_t *ud); +GValue* ghb_get_current_preset_path(signal_user_data_t *ud); +void ghb_preset_to_settings(GValue *settings, GValue *preset); +void dump_preset_path(const gchar *msg, const GValue *path); #endif // _GHB_PRESETS_H_ |