1 #ifndef __GBEMOL_INFO_H_ 2 #define __GBEMOL_INFO_H_ 3 4 #include "gbemol-mpd.h" 5 #include <gtk/gtk.h> 6 7 G_BEGIN_DECLS 8 9 #define GBEMOL_TYPE_INFO (gbemol_info_get_type ()) 10 #define GBEMOL_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GBEMOL_TYPE_INFO, GbemolInfo)) 11 #define GBEMOL_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GBEMOL_TYPE_INFO, GbemolInfoClass)) 12 #define GBEMOL_IS_INFO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GBEMOL_TYPE_INFO)) 13 #define GBEMOL_IS_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GBEMOL_TYPE_INFO)) 14 #define GBEMOL_INFO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GBEMOL_TYPE_INFO, GbemolInfoClass)) 15 16 #define N_C_RESULTS 10 17 18 typedef struct _GbemolInfo GbemolInfo; 19 typedef struct _GbemolInfoClass GbemolInfoClass; 20 typedef struct _GbemolInfoPrivate GbemolInfoPrivate; 21 22 /* Mode of the info being displayed */ 23 enum { 24 INFO_MODE_SONG = 1, 25 INFO_MODE_ALBUM, 26 INFO_MODE_ARTIST 27 }; 28 29 struct _GbemolInfo { 30 GtkEventBox parent; 31 GbemolInfoPrivate *priv; 32 }; 33 34 struct _GbemolInfoClass { 35 GtkEventBoxClass parent; 36 }; 37 38 GbemolInfo* gbemol_info_new (GbemolMpd* mpd); 39 void gbemol_info_set_song (GbemolInfo* info, GbemolMpdSong* song); 40 void gbemol_info_set_album (GbemolInfo* info, gchar* album, gchar* artist); 41 void gbemol_info_set_artist (GbemolInfo* info, gchar* artist); 42 43 G_END_DECLS 44 45 #endif 46 47