]> www.fi.muni.cz Git - evince.git/blob - shell/ev-sidebar-thumbnails.c
Construct an actual sidebar.
[evince.git] / shell / ev-sidebar-thumbnails.c
1 /* this file is part of evince, a gnome document viewer
2  *
3  *  Copyright (C) 2004 Red Hat, Inc.
4  *
5  *  Author:
6  *    Jonathan Blandford <jrb@alum.mit.edu>
7  *
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.
12  *
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.
17  *
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.
21  */
22
23 #ifdef HAVE_CONFIG_H
24 #include "config.h"
25 #endif
26
27 #include <string.h>
28 #include <gtk/gtk.h>
29
30 #include "ev-sidebar-thumbnails.h"
31
32 struct _EvSidebarThumbnailsPrivate {
33         int dummy;
34 };
35
36 G_DEFINE_TYPE (EvSidebarThumbnails, ev_sidebar_thumbnails, GTK_TYPE_VBOX)
37
38 #define EV_SIDEBAR_THUMBNAILS_GET_PRIVATE(object) \
39         (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_SIDEBAR_THUMBNAILS, EvSidebarThumbnailsPrivate))
40
41 static void
42 ev_sidebar_thumbnails_class_init (EvSidebarThumbnailsClass *ev_sidebar_thumbnails_class)
43 {
44         GObjectClass *g_object_class;
45
46         g_object_class = G_OBJECT_CLASS (ev_sidebar_thumbnails_class);
47
48         g_type_class_add_private (g_object_class, sizeof (EvSidebarThumbnailsPrivate));
49
50 }
51
52 static void
53 ev_sidebar_thumbnails_init (EvSidebarThumbnails *ev_sidebar_thumbnails)
54 {
55         GtkWidget *label;
56
57         ev_sidebar_thumbnails->priv = EV_SIDEBAR_THUMBNAILS_GET_PRIVATE (ev_sidebar_thumbnails);
58         
59         label = gtk_label_new ("Thumbnails!");
60         gtk_box_pack_start (GTK_BOX (ev_sidebar_thumbnails), label,
61                             TRUE, TRUE, 0);
62         gtk_widget_show (label);
63 }
64
65 GtkWidget *
66 ev_sidebar_thumbnails_new (void)
67 {
68         GtkWidget *ev_sidebar_thumbnails;
69
70         ev_sidebar_thumbnails = g_object_new (EV_TYPE_SIDEBAR_THUMBNAILS, NULL);
71
72         return ev_sidebar_thumbnails;
73 }