1 /* this file is part of evince, a gnome document viewer
3 * Copyright (C) 2004 Red Hat, Inc.
6 * Jonathan Blandford <jrb@alum.mit.edu>
8 * Evince is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * Evince is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
30 #include "ev-sidebar.h"
32 struct _EvSidebarPrivate {
33 GtkWidget *option_menu;
37 G_DEFINE_TYPE (EvSidebar, ev_sidebar, GTK_TYPE_VBOX)
39 #define EV_SIDEBAR_GET_PRIVATE(object) \
40 (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_SIDEBAR, EvSidebarPrivate))
43 ev_sidebar_class_init (EvSidebarClass *ev_sidebar_class)
45 GObjectClass *g_object_class;
47 g_object_class = G_OBJECT_CLASS (ev_sidebar_class);
49 g_type_class_add_private (g_object_class, sizeof (EvSidebarPrivate));
54 ev_sidebar_init (EvSidebar *ev_sidebar)
56 ev_sidebar->priv = EV_SIDEBAR_GET_PRIVATE (ev_sidebar);
58 ev_sidebar->priv->notebook = gtk_notebook_new ();
60 gtk_notebook_set_show_border (GTK_NOTEBOOK (ev_sidebar->priv->notebook), FALSE);
61 gtk_notebook_set_show_tabs (GTK_NOTEBOOK (ev_sidebar->priv->notebook), FALSE);
62 gtk_box_pack_start (GTK_BOX (ev_sidebar), ev_sidebar->priv->notebook,
64 gtk_widget_show_all (ev_sidebar->priv->notebook);
71 GtkWidget *ev_sidebar;
73 ev_sidebar = g_object_new (EV_TYPE_SIDEBAR, NULL);