1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ 2 /* 3 * Copyright (C) 2008 Imendio AB 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 16 * License along with this program; if not, write to the 17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 * Boston, MA 02111-1307, USA. 19 */ 20 21 #ifndef __DH_ASSISTANT_H__ 22 #define __DH_ASSISTANT_H__ 23 24 #include <gtk/gtk.h> 25 #include "dh-base.h" 26 27 G_BEGIN_DECLS 28 29 #define DH_TYPE_ASSISTANT (dh_assistant_get_type ()) 30 #define DH_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DH_TYPE_ASSISTANT, DhAssistant)) 31 #define DH_ASSISTANT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), DH_TYPE_ASSISTANT, DhAssistantClass)) 32 #define DH_IS_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DH_TYPE_ASSISTANT)) 33 #define DH_IS_ASSISTANT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DH_TYPE_ASSISTANT)) 34 #define DH_ASSISTANT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DH_TYPE_ASSISTANT, DhAssistantClass)) 35 36 typedef struct _DhAssistant DhAssistant; 37 typedef struct _DhAssistantClass DhAssistantClass; 38 39 struct _DhAssistant { 40 GtkWindow parent_instance; 41 }; 42 43 struct _DhAssistantClass { 44 GtkWindowClass parent_class; 45 }; 46 47 GType dh_assistant_get_type (void) G_GNUC_CONST; 48 GtkWidget *dh_assistant_new (DhBase *base); 49 gboolean dh_assistant_search (DhAssistant *assistant, 50 const gchar *str); 51 52 G_END_DECLS 53 54 #endif /* __DH_ASSISTANT_H__ */ 55