/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Copyright (C) 2002 CodeFactory AB * Copyright (C) 2001-2002 Mikael Hallendal * Copyright (C) 2005 Imendio AB * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __DH_WINDOW_H__ #define __DH_WINDOW_H__ #include #include #include "dh-base.h" #define DH_TYPE_WINDOW (dh_window_get_type ()) #define DH_WINDOW(obj) (GTK_CHECK_CAST ((obj), DH_TYPE_WINDOW, DhWindow)) #define DH_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), DH_TYPE_WINDOW, DhWindowClass)) #define DH_IS_WINDOW(obj) (GTK_CHECK_TYPE ((obj), DH_TYPE_WINDOW)) #define DH_IS_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), DH_TYPE_WINDOW)) typedef struct _DhWindow DhWindow; typedef struct _DhWindowClass DhWindowClass; typedef struct _DhWindowPriv DhWindowPriv; struct _DhWindow { GtkWindow parent; DhWindowPriv *priv; }; struct _DhWindowClass { GtkWindowClass parent_class; }; GType dh_window_get_type (void) G_GNUC_CONST; GtkWidget * dh_window_new (DhBase *base); void dh_window_search (DhWindow *window, const gchar *str); void dh_window_focus_search (DhWindow *window); #endif /* __DH_WINDOW_H__ */