1 /* 2 * Copyright (C) 2011 Murray Cumming <murrayc@murrayc.com> 3 * Copyright (C) 2011 Vivien Malerba <malerba@gnome-db.org> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 2 8 * of the License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef __ENTRY_PROPERTIES_H__ 21 #define __ENTRY_PROPERTIES_H__ 22 23 #include "../browser-connection.h" 24 25 G_BEGIN_DECLS 26 27 #define ENTRY_PROPERTIES_TYPE (entry_properties_get_type()) 28 #define ENTRY_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, ENTRY_PROPERTIES_TYPE, EntryProperties)) 29 #define ENTRY_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, ENTRY_PROPERTIES_TYPE, EntryPropertiesClass)) 30 #define IS_ENTRY_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, ENTRY_PROPERTIES_TYPE)) 31 #define IS_ENTRY_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ENTRY_PROPERTIES_TYPE)) 32 33 typedef struct _EntryProperties EntryProperties; 34 typedef struct _EntryPropertiesClass EntryPropertiesClass; 35 typedef struct _EntryPropertiesPrivate EntryPropertiesPrivate; 36 37 struct _EntryProperties { 38 GtkBox parent; 39 EntryPropertiesPrivate *priv; 40 }; 41 42 struct _EntryPropertiesClass { 43 GtkBoxClass parent_class; 44 45 /* signals */ 46 void (*open_dn) (EntryProperties *eprop, const gchar *dn); 47 void (*open_class) (EntryProperties *eprop, const gchar *classname); 48 }; 49 50 GType entry_properties_get_type (void) G_GNUC_CONST; 51 52 GtkWidget *entry_properties_new (BrowserConnection *bcnc); 53 void entry_properties_set_dn (EntryProperties *eprop, const gchar *dn); 54 55 G_END_DECLS 56 57 #endif 58