1 /* 2 * caja-property-page.h - Property pages exported by 3 * CajaPropertyProvider objects. 4 * 5 * Copyright (C) 2003 Novell, Inc. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Library General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU Library General Public 18 * License along with this library; if not, write to the Free 19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: Dave Camp <dave@ximian.com> 22 * 23 */ 24 25 #ifndef CAJA_PROPERTY_PAGE_H 26 #define CAJA_PROPERTY_PAGE_H 27 28 #include <glib-object.h> 29 #include <gtk/gtk.h> 30 #include "caja-extension-types.h" 31 32 G_BEGIN_DECLS 33 34 #define CAJA_TYPE_PROPERTY_PAGE (caja_property_page_get_type()) 35 #define CAJA_PROPERTY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAJA_TYPE_PROPERTY_PAGE, CajaPropertyPage)) 36 #define CAJA_PROPERTY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAJA_TYPE_PROPERTY_PAGE, CajaPropertyPageClass)) 37 #define CAJA_IS_PROPERTY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAJA_TYPE_PROPERTY_PAGE)) 38 #define CAJA_IS_PROPERTY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), CAJA_TYPE_PROPERTY_PAGE)) 39 #define CAJA_PROPERTY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), CAJA_TYPE_PROPERTY_PAGE, CajaPropertyPageClass)) 40 41 typedef struct _CajaPropertyPage CajaPropertyPage; 42 typedef struct _CajaPropertyPageDetails CajaPropertyPageDetails; 43 typedef struct _CajaPropertyPageClass CajaPropertyPageClass; 44 45 struct _CajaPropertyPage { 46 GObject parent; 47 48 CajaPropertyPageDetails *details; 49 }; 50 51 struct _CajaPropertyPageClass { 52 GObjectClass parent; 53 }; 54 55 GType caja_property_page_get_type (void); 56 CajaPropertyPage *caja_property_page_new (const char *name, 57 GtkWidget *label, 58 GtkWidget *page); 59 60 /* CajaPropertyPage has the following properties: 61 * name (string) - the identifier for the property page 62 * label (widget) - the user-visible label of the property page 63 * page (widget) - the property page to display 64 */ 65 66 G_END_DECLS 67 68 #endif 69