1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 /* 3 * Copyright (C) 2002 Fernando Herrera <fherrera@onirica.com> 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 as 7 * published by the Free Software Foundation; either version 2 of the 8 * 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 GNU 13 * 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., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 19 20 #ifndef __GCONF_SEARCH_DIALOG_H__ 21 #define __GCONF_SEARCH_DIALOG_H__ 22 23 #include <gtk/gtk.h> 24 25 #define GCONF_TYPE_SEARCH_DIALOG (gconf_search_dialog_get_type ()) 26 #define GCONF_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCONF_TYPE_SEARCH_DIALOG, GConfSearchDialog)) 27 #define GCONF_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCONF_TYPE_SEARCH_DIALOG, GConfSearchDialogClass)) 28 #define GCONF_IS_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCONF_TYPE_SEARCH_DIALOG)) 29 #define GCONF_IS_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), GCONF_TYPE_SEARCH_DIALOG)) 30 #define GCONF_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCONF_TYPE_SEARCH_DIALOG, GConfSearchDialogClass)) 31 32 typedef struct _GConfSearchDialog GConfSearchDialog; 33 typedef struct _GConfSearchDialogClass GConfSearchDialogClass; 34 35 struct _GConfSearchDialog { 36 GtkDialog parent_instance; 37 38 GtkWidget *entry; 39 GtkWidget *search_in_keys; 40 GtkWidget *search_in_values; 41 GtkWidget *search_button; 42 }; 43 44 struct _GConfSearchDialogClass { 45 GtkDialogClass parent_class; 46 }; 47 48 GType gconf_search_dialog_get_type (void); 49 GtkWidget *gconf_search_dialog_new (GtkWindow *parent); 50 51 #endif /* __GCONF_SEARCH_DIALOG_H__ */ 52 53