1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 
3 /*
4  *  Goo
5  *
6  *  Copyright (C) 2004, 2007 Free Software Foundation, Inc.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef GOO_PLAYER_INFO_H
23 #define GOO_PLAYER_INFO_H
24 
25 #include <gtk/gtk.h>
26 #include "goo-window.h"
27 
28 #define GOO_TYPE_PLAYER_INFO              (goo_player_info_get_type ())
29 #define GOO_PLAYER_INFO(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOO_TYPE_PLAYER_INFO, GooPlayerInfo))
30 #define GOO_PLAYER_INFO_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GOO_TYPE_PLAYER_INFO, GooPlayerInfoClass))
31 #define GOO_IS_PLAYER_INFO(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GOO_TYPE_PLAYER_INFO))
32 #define GOO_IS_PLAYER_INFO_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GOO_TYPE_PLAYER_INFO))
33 #define GOO_PLAYER_INFO_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GOO_TYPE_PLAYER_INFO, GooPlayerInfoClass))
34 
35 typedef struct _GooPlayerInfo        GooPlayerInfo;
36 typedef struct _GooPlayerInfoClass   GooPlayerInfoClass;
37 typedef struct _GooPlayerInfoPrivate GooPlayerInfoPrivate;
38 
39 struct _GooPlayerInfo
40 {
41 	GtkBox __parent;
42 	GooPlayerInfoPrivate *priv;
43 };
44 
45 struct _GooPlayerInfoClass
46 {
47 	GtkBoxClass __parent_class;
48 
49 	/*<signals>*/
50 
51 	void (*cover_clicked) (GooPlayerInfo *info);
52 	void (*update_status) (GooPlayerInfo *info);
53 };
54 
55 GType		goo_player_info_get_type	(void);
56 GtkWidget *	goo_player_info_new		(GooWindow	*window);
57 GdkPixbuf *	goo_player_info_get_cover	(GooPlayerInfo	*info);
58 const char *	goo_player_info_get_cover_file	(GooPlayerInfo	*info);
59 
60 #endif /* GOO_PLAYER_INFO_H */
61