mp3splt-gtk 0.9.3.1519
Loading...
Searching...
No Matches
preferences_manager.h
1/**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright (c) 2005-2014 Alexandru Munteanu - m@ioalex.net
7 *
8 * http://mp3splt.sourceforge.net/
9 *
10 *********************************************************/
11
12/**********************************************************
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
27 * USA.
28 *
29 *********************************************************/
30
31#ifndef PREFERENCES_MANAGER_H
32
33#define PREFERENCES_MANAGER_H
34
35#include <gtk/gtk.h>
36
37#include "ui_types.h"
38
40gchar *get_configuration_directory();
42void save_preferences(ui_state *ui);
43
44preferences_state *pm_state_new();
45void pm_free(preferences_state **pm);
46
47void pm_register_spinner_int_preference(gchar *main_key, gchar *second_key,
48 gint default_value, GtkWidget *spinner,
49 void (*update_spinner_value_cb)(GtkWidget *spinner, gpointer data),
50 gpointer user_data_for_cb, preferences_state *pm);
51
52void pm_register_range_preference(gchar *main_key, gchar *second_key,
53 gint default_value, GtkWidget *range,
54 void (*update_adjustment_value)(GtkAdjustment *adjustment, gpointer data),
55 gpointer user_data_for_cb, preferences_state *pm);
56
57#endif
58
void load_preferences(ui_state *ui)
Read the preferences from the preferences file.
gchar * get_preferences_filename()
Get the name of the preferences file.