~ubuntu-branches/ubuntu/utopic/rhythmbox/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/disclosure-widget.h

Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
 
 
3
 
/*
4
 
 *  arch-tag: Header file for the "disclosure" widget
5
 
 *
6
 
 *  Authors: Iain Holmes <iain@ximian.com>
7
 
 *
8
 
 *  Copyright 2002 Iain Holmes
9
 
 *
10
 
 *  This program is free software; you can redistribute it and/or modify
11
 
 *  it under the terms of the GNU General Public License as published by
12
 
 *  the Free Software Foundation; either version 2 of the License, or
13
 
 *  (at your option) any later version.
14
 
 *
15
 
 *  This program is distributed in the hope that it will be useful,
16
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 
 *  GNU General Public License for more details.
19
 
 *
20
 
 *  You should have received a copy of the GNU General Public License
21
 
 *  along with this program; if not, write to the Free Software
22
 
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
23
 
 *
24
 
 */
25
 
 
26
 
#ifndef __DISCLOSURE_WIDGET_H__
27
 
#define __DISCLOSURE_WIDGET_H__
28
 
 
29
 
#include <gtk/gtkcheckbutton.h>
30
 
 
31
 
G_BEGIN_DECLS
32
 
 
33
 
#define CDDB_DISCLOSURE_TYPE (cddb_disclosure_get_type ())
34
 
#define CDDB_DISCLOSURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CDDB_DISCLOSURE_TYPE, CDDBDisclosure))
35
 
#define CDDB_DISCLOSURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CDDB_DISCLOSURE_TYPE, CDDBDisclosureClass))
36
 
#define IS_CDDB_DISCLOSURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CDDB_DISCLOSURE_TYPE))
37
 
#define IS_CDDB_DISCLOSURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CDDB_DISCLOSURE_TYPE))
38
 
 
39
 
typedef struct _CDDBDisclosure CDDBDisclosure;
40
 
typedef struct _CDDBDisclosureClass CDDBDisclosureClass;
41
 
typedef struct _CDDBDisclosurePrivate CDDBDisclosurePrivate;
42
 
 
43
 
struct _CDDBDisclosure {
44
 
        GtkCheckButton parent;
45
 
 
46
 
        CDDBDisclosurePrivate *priv;
47
 
};
48
 
 
49
 
struct _CDDBDisclosureClass {
50
 
        GtkCheckButtonClass parent_class;
51
 
 
52
 
        void    (*changed) (CDDBDisclosure *cddb, gboolean disclosed);
53
 
};
54
 
 
55
 
GType            cddb_disclosure_get_type (void);
56
 
 
57
 
GtkWidget       *cddb_disclosure_new (const char *shown,
58
 
                                      const char *hidden);
59
 
 
60
 
void             cddb_disclosure_set_container  (CDDBDisclosure *cddb,
61
 
                                                 GtkWidget *widget);
62
 
 
63
 
void             cddb_disclosure_set_labels (CDDBDisclosure *cddb,
64
 
                                             const char *label_when_shown,
65
 
                                             const char *label_when_hidden);
66
 
 
67
 
GtkWidget       *cddb_disclosure_new_from_glade (gchar *widget_name,
68
 
                                                 gchar *string1, gchar *string2,
69
 
                                                 gint int1, gint int2);
70
 
 
71
 
G_END_DECLS
72
 
 
73
 
#endif