1 /* 2 * Copyright (C) 2004,2005 Marc Pavot <marc.pavot@gmail.com> 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 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 */ 19 20 21 #ifndef __ARIO_SHELL_COVERSELECT_H 22 #define __ARIO_SHELL_COVERSELECT_H 23 24 #include <glib.h> 25 #include <gtk/gtk.h> 26 #include "servers/ario-server.h" 27 28 G_BEGIN_DECLS 29 30 #define TYPE_ARIO_SHELL_COVERSELECT (ario_shell_coverselect_get_type ()) 31 #define ARIO_SHELL_COVERSELECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ARIO_SHELL_COVERSELECT, ArioShellCoverselect)) 32 #define ARIO_SHELL_COVERSELECT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), TYPE_ARIO_SHELL_COVERSELECT, ArioShellCoverselectClass)) 33 #define IS_ARIO_SHELL_COVERSELECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ARIO_SHELL_COVERSELECT)) 34 #define IS_ARIO_SHELL_COVERSELECT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ARIO_SHELL_COVERSELECT)) 35 #define ARIO_SHELL_COVERSELECT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ARIO_SHELL_COVERSELECT, ArioShellCoverselectClass)) 36 37 typedef struct ArioShellCoverselectPrivate ArioShellCoverselectPrivate; 38 39 /** 40 * ArioShellCoverselect is a dialog window that can be used 41 * to change the cover of an album. 42 */ 43 typedef struct 44 { 45 GtkDialog parent; 46 47 ArioShellCoverselectPrivate *priv; 48 } ArioShellCoverselect; 49 50 typedef struct 51 { 52 GtkDialogClass parent_class; 53 } ArioShellCoverselectClass; 54 55 GType ario_shell_coverselect_get_type (void) G_GNUC_CONST; 56 57 GtkWidget * ario_shell_coverselect_new (ArioServerAlbum *server_album); 58 59 G_END_DECLS 60 61 #endif /* __ARIO_SHELL_COVERSELECT_H */ 62