diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2008-11-15 10:08:38 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2008-11-15 10:08:38 (GMT) |
commit | 7f94a4075450791807ee2699cb0e7a0293ccc2f3 (patch) | |
tree | 053081ede8f0448ba59d6729dc66dcc434817202 /shell/ev-sidebar-layers.h | |
parent | b39fbcf7b7c248bf2ab04d5ff86d17780194ae5d (diff) |
Add layers support.
2008-11-15 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/Makefile.am:
* shell/ev-jobs.[ch]: (ev_job_layers_init),
(ev_job_layers_dispose), (ev_job_layers_run),
(ev_job_layers_class_init), (ev_job_layers_new):
* shell/ev-sidebar-layers.[ch]:
* shell/ev-view.[ch]: (ev_view_form_field_button_create_widget),
(ev_view_form_field_text_save), (ev_view_form_field_choice_save),
(ev_view_reload_page), (ev_view_reload):
* shell/ev-window.c: (setup_sidebar_from_metadata),
(ev_window_sidebar_current_page_changed_cb),
(sidebar_layers_visibility_changed), (ev_window_init):
Add layers support.
svn path=/trunk/; revision=3268
Diffstat (limited to 'shell/ev-sidebar-layers.h')
-rw-r--r-- | shell/ev-sidebar-layers.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/shell/ev-sidebar-layers.h b/shell/ev-sidebar-layers.h new file mode 100644 index 0000000..f974d79 --- /dev/null +++ b/shell/ev-sidebar-layers.h @@ -0,0 +1,58 @@ +/* ev-sidebar-layers.h + * this file is part of evince, a gnome document viewer + * + * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> + * + * Evince 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. + * + * Evince 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 __EV_SIDEBAR_LAYERS_H__ +#define __EV_SIDEBAR_LAYERS_H__ + +#include <gtk/gtk.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +typedef struct _EvSidebarLayers EvSidebarLayers; +typedef struct _EvSidebarLayersClass EvSidebarLayersClass; +typedef struct _EvSidebarLayersPrivate EvSidebarLayersPrivate; + +#define EV_TYPE_SIDEBAR_LAYERS (ev_sidebar_layers_get_type()) +#define EV_SIDEBAR_LAYERS(object) (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_SIDEBAR_LAYERS, EvSidebarLayers)) +#define EV_SIDEBAR_LAYERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_SIDEBAR_LAYERS, EvSidebarLayersClass)) +#define EV_IS_SIDEBAR_LAYERS(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_SIDEBAR_LAYERS)) +#define EV_IS_SIDEBAR_LAYERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_SIDEBAR_LAYERS)) +#define EV_SIDEBAR_LAYERS_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_SIDEBAR_LAYERS, EvSidebarLayersClass)) + +struct _EvSidebarLayers { + GtkVBox base_instance; + + EvSidebarLayersPrivate *priv; +}; + +struct _EvSidebarLayersClass { + GtkVBoxClass base_class; + + /* Signals */ + void (* layers_visibility_changed) (EvSidebarLayers *ev_layers); +}; + +GType ev_sidebar_layers_get_type (void) G_GNUC_CONST; +GtkWidget *ev_sidebar_layers_new (void); + +G_END_DECLS + +#endif /* __EV_SIDEBAR_LAYERS_H__ */ |