1 /*
2  *  Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  The Rhythmbox authors hereby grant permission for non-GPL compatible
10  *  GStreamer plugins to be used and distributed together with GStreamer
11  *  and Rhythmbox. This permission is above and beyond the permissions granted
12  *  by the GPL license by which Rhythmbox is covered. If you modify this code
13  *  you may extend this exception to your version of the code, but you are not
14  *  obligated to do so. If you do not wish to do so, delete this exception
15  *  statement from your version.
16  *
17  *  This program is distributed in the hope that it will be useful,
18  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  *  GNU General Public License for more details.
21  *
22  *  You should have received a copy of the GNU General Public License
23  *  along with this program; if not, write to the Free Software
24  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
25  *
26  */
27 
28 #include <gtk/gtk.h>
29 
30 #ifndef __RB_SHELL_PREFERENCES_H
31 #define __RB_SHELL_PREFERENCES_H
32 
33 G_BEGIN_DECLS
34 
35 typedef enum
36 {
37 	RB_SHELL_PREFS_UI_LOCATION_GENERAL,
38 	RB_SHELL_PREFS_UI_LOCATION_PLAYBACK
39 } RBShellPrefsUILocation;
40 
41 GType rb_shell_prefs_ui_location_get_type (void);
42 #define RB_TYPE_SHELL_PREFS_UI_LOCATION	(rb_shell_prefs_ui_location_get_type())
43 
44 #define RB_TYPE_SHELL_PREFERENCES         (rb_shell_preferences_get_type ())
45 #define RB_SHELL_PREFERENCES(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_SHELL_PREFERENCES, RBShellPreferences))
46 #define RB_SHELL_PREFERENCES_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_SHELL_PREFERENCES, RBShellPreferencesClass))
47 #define RB_IS_SHELL_PREFERENCES(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_SHELL_PREFERENCES))
48 #define RB_IS_SHELL_PREFERENCES_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_SHELL_PREFERENCES))
49 #define RB_SHELL_PREFERENCES_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_SHELL_PREFERENCES, RBShellPreferencesClass))
50 
51 typedef struct _RBShellPreferences RBShellPreferences;
52 typedef struct _RBShellPreferencesClass RBShellPreferencesClass;
53 typedef struct RBShellPreferencesPrivate RBShellPreferencesPrivate;
54 
55 struct _RBShellPreferences
56 {
57 	GtkDialog parent;
58 
59 	RBShellPreferencesPrivate *priv;
60 };
61 
62 struct _RBShellPreferencesClass
63 {
64 	GtkDialogClass parent_class;
65 };
66 
67 GType		rb_shell_preferences_get_type		(void);
68 
69 GtkWidget	*rb_shell_preferences_new		(GList *views);
70 void		rb_shell_preferences_append_page	(RBShellPreferences *prefs,
71 							 const char *name,
72 							 GtkWidget *widget);
73 void		rb_shell_preferences_add_widget		(RBShellPreferences *prefs,
74 							 GtkWidget *widget,
75 							 RBShellPrefsUILocation location,
76 							 gboolean expand,
77 							 gboolean fill);
78 void		rb_shell_preferences_remove_widget	(RBShellPreferences *prefs,
79 							 GtkWidget *widget,
80 							 RBShellPrefsUILocation location);
81 
82 G_END_DECLS
83 
84 #endif /* __RB_SHELL_PREFERENCES_H */
85