|
Packit |
116408 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
|
|
Packit |
116408 |
/*
|
|
Packit |
116408 |
* Copyright (C) 2008 Sven Herzberg
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is free software; you can redistribute it and/or
|
|
Packit |
116408 |
* modify it under the terms of the GNU General Public License as
|
|
Packit |
116408 |
* published by the Free Software Foundation; either version 2 of the
|
|
Packit |
116408 |
* License, or (at your option) any later version.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
116408 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
116408 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
116408 |
* GNU General Public License for more details.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
116408 |
* along with this program; if not, write to the Free Software
|
|
Packit |
116408 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
Packit |
116408 |
* USA
|
|
Packit |
116408 |
*/
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#ifndef DH_ASSISTANT_VIEW_H
|
|
Packit |
116408 |
#define DH_ASSISTANT_VIEW_H
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#include <webkit2/webkit2.h>
|
|
Packit |
116408 |
#include "dh-book-manager.h"
|
|
Packit |
116408 |
#include "dh-link.h"
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_BEGIN_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#define DH_TYPE_ASSISTANT_VIEW (dh_assistant_view_get_type ())
|
|
Packit |
116408 |
#define DH_ASSISTANT_VIEW(i) (G_TYPE_CHECK_INSTANCE_CAST ((i), DH_TYPE_ASSISTANT_VIEW, DhAssistantView))
|
|
Packit |
116408 |
#define DH_ASSISTANT_VIEW_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), DH_TYPE_ASSISTANT_VIEW, DhAssistantViewClass))
|
|
Packit |
116408 |
#define DH_IS_ASSISTANT_VIEW(i) (G_TYPE_CHECK_INSTANCE_TYPE ((i), DH_TYPE_ASSISTANT_VIEW))
|
|
Packit |
116408 |
#define DH_IS_ASSISTANT_VIEW_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), DH_ASSISTANT_VIEW))
|
|
Packit |
116408 |
#define DH_ASSISTANT_VIEW_GET_CLASS(i) (G_TYPE_INSTANCE_GET_CLASS ((i), DH_TYPE_ASSISTANT_VIEW, DhAssistantView))
|
|
Packit |
116408 |
|
|
Packit |
116408 |
typedef struct _DhAssistantView DhAssistantView;
|
|
Packit |
116408 |
typedef struct _DhAssistantViewClass DhAssistantViewClass;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhAssistantView {
|
|
Packit |
116408 |
WebKitWebView parent_instance;
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhAssistantViewClass {
|
|
Packit |
116408 |
WebKitWebViewClass parent_class;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
/* Padding for future expansion */
|
|
Packit |
116408 |
gpointer padding[12];
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GType dh_assistant_view_get_type (void) G_GNUC_CONST;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GtkWidget * dh_assistant_view_new (void);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
gboolean dh_assistant_view_set_link (DhAssistantView *view,
|
|
Packit |
116408 |
DhLink *link);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
gboolean dh_assistant_view_search (DhAssistantView *view,
|
|
Packit |
116408 |
const gchar *str);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_END_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#endif /* DH_ASSISTANT_VIEW_H */
|