diff options
author | Alessio Treglia <alessio@debian.org> | 2010-08-31 01:00:11 +0200 |
---|---|---|
committer | Alessio Treglia <alessio@debian.org> | 2010-08-31 01:00:11 +0200 |
commit | 6cd216d78dc05e818ce8e9a244be16a7d523d7d3 (patch) | |
tree | 68220a673646087db9b379deebb6938a4de20787 /src/book-view.c | |
parent | 8e6c8048192d0a864c3c11b6cd3025572b527e8c (diff) |
Imported Upstream version 2.31.91upstream/2.31.91
Diffstat (limited to 'src/book-view.c')
-rw-r--r-- | src/book-view.c | 9 |
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: |