1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
4
* arch-tag: Header file for the "disclosure" widget
6
* Authors: Iain Holmes <iain@ximian.com>
8
* Copyright 2002 Iain Holmes
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.
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.
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.
26
#ifndef __DISCLOSURE_WIDGET_H__
27
#define __DISCLOSURE_WIDGET_H__
29
#include <gtk/gtkcheckbutton.h>
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))
39
typedef struct _CDDBDisclosure CDDBDisclosure;
40
typedef struct _CDDBDisclosureClass CDDBDisclosureClass;
41
typedef struct _CDDBDisclosurePrivate CDDBDisclosurePrivate;
43
struct _CDDBDisclosure {
44
GtkCheckButton parent;
46
CDDBDisclosurePrivate *priv;
49
struct _CDDBDisclosureClass {
50
GtkCheckButtonClass parent_class;
52
void (*changed) (CDDBDisclosure *cddb, gboolean disclosed);
55
GType cddb_disclosure_get_type (void);
57
GtkWidget *cddb_disclosure_new (const char *shown,
60
void cddb_disclosure_set_container (CDDBDisclosure *cddb,
63
void cddb_disclosure_set_labels (CDDBDisclosure *cddb,
64
const char *label_when_shown,
65
const char *label_when_hidden);
67
GtkWidget *cddb_disclosure_new_from_glade (gchar *widget_name,
68
gchar *string1, gchar *string2,
69
gint int1, gint int2);