diff options
author | Alessio Treglia <alessio@debian.org> | 2010-08-31 01:00:12 +0200 |
---|---|---|
committer | Alessio Treglia <alessio@debian.org> | 2010-08-31 01:00:12 +0200 |
commit | 4ac5f08a40731e4ac9331116748e2e5740cc3805 (patch) | |
tree | 698bea0d09e82ff8277163e5631e9bf70e6d24ed /src/book-view.c | |
parent | 213b74fec6f0f9be688d4e860db8d8339248a293 (diff) | |
parent | 6cd216d78dc05e818ce8e9a244be16a7d523d7d3 (diff) |
Merge commit 'upstream/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: |