preferences_manager.h
/**********************************************************
*
* mp3splt-gtk -- utility based on mp3splt,
* for mp3/ogg splitting without decoding
*
* Copyright (c) 2005-2012 Alexandru Munteanu - m@ioalex.net
*
* http://mp3splt.sourceforge.net/
*
*********************************************************/
/**********************************************************
*
* This program is free software; you can redistribute it and/or
* modify 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 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.
*
*********************************************************/
#ifndef PREFERENCES_MANAGER_H
#define PREFERENCES_MANAGER_H
#include <gtk/gtk.h>
#include "ui_types.h"
gchar *get_preferences_filename();
gchar *get_configuration_directory();
void load_preferences(ui_state *ui);
void save_preferences(ui_state *ui);
preferences_state *pm_state_new();
void pm_free(preferences_state **pm);
void pm_register_spinner_int_preference(gchar *main_key, gchar *second_key,
gint default_value, GtkWidget *spinner,
void (*update_spinner_value_cb)(GtkWidget *spinner, gpointer data),
gpointer user_data_for_cb, preferences_state *pm);
void pm_register_range_preference(gchar *main_key, gchar *second_key,
gint default_value, GtkWidget *range,
void (*update_adjustment_value)(GtkAdjustment *adjustment, gpointer data),
gpointer user_data_for_cb, preferences_state *pm);
#endif