summaryrefslogtreecommitdiff
path: root/src/book-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/book-view.c')
-rw-r--r--src/book-view.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/book-view.c b/src/book-view.c
index 377a156..ac6e32c 100644
--- a/src/book-view.c
+++ b/src/book-view.c
@@ -236,6 +236,14 @@ remove_cb (Book *book, Page *page, BookView *view)
static void
+reorder_cb (Book *book, BookView *view)
+{
+ view->priv->need_layout = TRUE;
+ book_view_redraw (view);
+}
+
+
+static void
clear_cb (Book *book, BookView *view)
{
g_hash_table_remove_all (view->priv->page_data);
@@ -676,6 +684,7 @@ book_view_set_property(GObject *object,
/* Watch for new pages */
g_signal_connect (self->priv->book, "page-added", G_CALLBACK (add_cb), self);
g_signal_connect (self->priv->book, "page-removed", G_CALLBACK (remove_cb), self);
+ g_signal_connect (self->priv->book, "reordered", G_CALLBACK (reorder_cb), self);
g_signal_connect (self->priv->book, "cleared", G_CALLBACK (clear_cb), self);
break;
default: