summaryrefslogtreecommitdiff
path: root/src/book-view.h
diff options
context:
space:
mode:
authorAlessio Treglia <quadrispro@ubuntu.com>2010-05-13 20:16:51 +0200
committerAlessio Treglia <quadrispro@ubuntu.com>2010-05-13 20:16:51 +0200
commit37e8ad6c00349fd62f09c8cfe3e22acf545db2ac (patch)
tree4b663edb122b77e9c8f1b48c0f1c68f69fcf5655 /src/book-view.h
parentdc950f77d2a9f9aa23f6bd0ea59648c34fff491b (diff)
Imported Upstream version 2.31.1upstream/2.31.1
Diffstat (limited to 'src/book-view.h')
-rw-r--r--src/book-view.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/book-view.h b/src/book-view.h
index acc3899..5b5e2a6 100644
--- a/src/book-view.h
+++ b/src/book-view.h
@@ -12,7 +12,6 @@
#ifndef _BOOK_VIEW_H_
#define _BOOK_VIEW_H_
-#include <glib-object.h>
#include <gtk/gtk.h>
#include <cairo.h>
#include "book.h"
@@ -27,28 +26,23 @@ typedef struct BookViewPrivate BookViewPrivate;
typedef struct
{
- GObject parent_instance;
+ GtkVBox parent_instance;
BookViewPrivate *priv;
} BookView;
typedef struct
{
- GObjectClass parent_class;
-
+ GtkVBoxClass parent_class;
+
void (*page_selected) (BookView *view, Page *page);
void (*show_page) (BookView *view, Page *page);
+ void (*show_menu) (BookView *view, Page *page);
} BookViewClass;
GType book_view_get_type (void);
-BookView *book_view_new (void);
-
-// FIXME: Book view should extend GtkVBox
-void book_view_set_widgets (BookView *view, GtkWidget *box, GtkWidget *area, GtkWidget *scroll, GtkWidget *page_menu);
-
-// FIXME: Should be part of book_view_new
-void book_view_set_book (BookView *view, Book *book);
+BookView *book_view_new (Book *book);
void book_view_redraw (BookView *view);