|
Packit |
116408 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
|
|
Packit |
116408 |
/*
|
|
Packit |
116408 |
* Copyright (C) 2001-2002 CodeFactory AB
|
|
Packit |
116408 |
* Copyright (C) 2001-2002 Mikael Hallendal <micke@imendio.com>
|
|
Packit |
116408 |
* Copyright (C) 2013 Aleksander Morgado <aleksander@gnu.org>
|
|
Packit |
116408 |
* Copyright (C) 2017 Sébastien Wilmet <swilmet@gnome.org>
|
|
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 GNU
|
|
Packit |
116408 |
* 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, see <http://www.gnu.org/licenses/>.
|
|
Packit |
116408 |
*/
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#ifndef DH_SIDEBAR_H
|
|
Packit |
116408 |
#define DH_SIDEBAR_H
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#include <gtk/gtk.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_SIDEBAR (dh_sidebar_get_type ())
|
|
Packit |
116408 |
#define DH_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DH_TYPE_SIDEBAR, DhSidebar))
|
|
Packit |
116408 |
#define DH_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DH_TYPE_SIDEBAR, DhSidebarClass))
|
|
Packit |
116408 |
#define DH_IS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DH_TYPE_SIDEBAR))
|
|
Packit |
116408 |
#define DH_IS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DH_TYPE_SIDEBAR))
|
|
Packit |
116408 |
|
|
Packit |
116408 |
typedef struct _DhSidebar DhSidebar;
|
|
Packit |
116408 |
typedef struct _DhSidebarClass DhSidebarClass;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhSidebar {
|
|
Packit |
116408 |
GtkGrid parent_instance;
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhSidebarClass {
|
|
Packit |
116408 |
GtkGridClass parent_class;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
/* Signals */
|
|
Packit |
116408 |
void (*link_selected) (DhSidebar *sidebar,
|
|
Packit |
116408 |
DhLink *link);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
/* Padding for future expansion */
|
|
Packit |
116408 |
gpointer padding[12];
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GType dh_sidebar_get_type (void);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GtkWidget * dh_sidebar_new (DhBookManager *book_manager);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_sidebar_select_uri (DhSidebar *sidebar,
|
|
Packit |
116408 |
const gchar *uri);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_sidebar_set_search_string (DhSidebar *sidebar,
|
|
Packit |
116408 |
const gchar *str);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_sidebar_set_search_focus (DhSidebar *sidebar);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_END_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#endif /* DH_SIDEBAR_H */
|