diff options
author | infirit <[email protected]> | 2014-12-09 11:54:19 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-09 23:02:27 +0100 |
commit | 83ca334c004a0464322b7bba3f7aa4c83e63945d (patch) | |
tree | d1291c6cc9c63148bd8ce48d239eb5c4f93678d2 /shell/ev-window.c | |
parent | a81dc81efad42fb0c8752bd7d33a0c3f0e81c3bd (diff) | |
download | atril-83ca334c004a0464322b7bba3f7aa4c83e63945d.tar.bz2 atril-83ca334c004a0464322b7bba3f7aa4c83e63945d.tar.xz |
[shell] Update layers sidebar page when layers have changed
Based on evince commit: b151de0dab3a7c3355f8206b8f95548d11714e9e
From: Carlos Garcia Campos <[email protected]>
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r-- | shell/ev-window.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index e7fed16e..f4600d92 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -963,6 +963,13 @@ web_view_selection_changed_cb(EvWebView *webview, #endif static void +view_layers_changed_cb (EvView *view, + EvWindow *window) +{ + ev_sidebar_layers_update_layers_state (EV_SIDEBAR_LAYERS (window->priv->sidebar_layers)); +} + +static void ev_window_page_changed_cb (EvWindow *ev_window, gint old_page, gint new_page, @@ -7375,6 +7382,9 @@ ev_window_init (EvWindow *ev_window) g_signal_connect_object (ev_window->priv->view, "annot-added", G_CALLBACK (view_annot_added), ev_window, 0); + g_signal_connect_object (ev_window->priv->view, "layers-changed", + G_CALLBACK (view_layers_changed_cb), + ev_window, 0); #ifdef ENABLE_DBUS g_signal_connect_swapped (ev_window->priv->view, "sync-source", G_CALLBACK (ev_window_sync_source), |