[libgepub] lib: Fix gepub-widget chapter change signal



commit e2055cfac5bd53bdcf9d752f34a5800eecf76c7c
Author: Daniel GarcĂ­a Moreno <danigm wadobo com>
Date:   Wed Jan 17 11:51:13 2018 +0100

    lib: Fix gepub-widget chapter change signal
    
    The GepubDoc property page has been changed to chapter so we need to
    listen to that property change on the GepubWidget to reload the chapter.

 libgepub/gepub-widget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgepub/gepub-widget.c b/libgepub/gepub-widget.c
index 2f330b1..222fceb 100644
--- a/libgepub/gepub-widget.c
+++ b/libgepub/gepub-widget.c
@@ -478,7 +478,7 @@ gepub_widget_set_doc (GepubWidget *widget,
     if (widget->doc != NULL) {
         g_object_ref (widget->doc);
         reload_current_chapter (widget);
-        g_signal_connect_swapped (widget->doc, "notify::page",
+        g_signal_connect_swapped (widget->doc, "notify::chapter",
                                   G_CALLBACK (reload_current_chapter), widget);
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]