diff options
author | Gustavo Noronha Silva <gns@gnome.org> | 2009-12-16 20:35:55 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@gnome.org> | 2009-12-17 20:21:25 +0800 |
commit | de05c84965bc829f14fb9165bd05d5612967a36d (patch) | |
tree | 943d0bda5b6e028ec4fb578eb65cbc6920a3b793 /src/ppview-toolbar.c | |
parent | 092c7136695555fbd44c51e37c36202c7a2cb832 (diff) | |
download | gsoc2013-epiphany-de05c84965bc829f14fb9165bd05d5612967a36d.tar gsoc2013-epiphany-de05c84965bc829f14fb9165bd05d5612967a36d.tar.gz gsoc2013-epiphany-de05c84965bc829f14fb9165bd05d5612967a36d.tar.bz2 gsoc2013-epiphany-de05c84965bc829f14fb9165bd05d5612967a36d.tar.lz gsoc2013-epiphany-de05c84965bc829f14fb9165bd05d5612967a36d.tar.xz gsoc2013-epiphany-de05c84965bc829f14fb9165bd05d5612967a36d.tar.zst gsoc2013-epiphany-de05c84965bc829f14fb9165bd05d5612967a36d.zip |
Make EphyEmbed inherit from GtkVBox instead of GtkScrolledWindow
Diffstat (limited to 'src/ppview-toolbar.c')
-rw-r--r-- | src/ppview-toolbar.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ppview-toolbar.c b/src/ppview-toolbar.c index dbc571980..db27d42ed 100644 --- a/src/ppview-toolbar.c +++ b/src/ppview-toolbar.c @@ -178,7 +178,7 @@ toolbar_update_sensitivity (PPViewToolbar *t) (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); - pages = ephy_web_view_print_preview_n_pages (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed)); + pages = ephy_web_view_print_preview_n_pages (ephy_embed_get_web_view (embed)); c_page = t->priv->current_page; action = gtk_action_group_get_action (action_group, "PPVGoBack"); @@ -273,7 +273,7 @@ toolbar_cmd_ppv_goto_first (GtkUIManager *merge, embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (EPHY_IS_EMBED (embed)); - ephy_web_view_print_preview_navigate (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed), EPHY_WEB_VIEW_PRINTPREVIEW_HOME, 0); + ephy_web_view_print_preview_navigate (ephy_embed_get_web_view (embed), EPHY_WEB_VIEW_PRINTPREVIEW_HOME, 0); t->priv->current_page = 1; @@ -290,11 +290,11 @@ toolbar_cmd_ppv_goto_last (GtkUIManager *merge, embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); - ephy_web_view_print_preview_navigate (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed), + ephy_web_view_print_preview_navigate (ephy_embed_get_web_view (embed), EPHY_WEB_VIEW_PRINTPREVIEW_END, 0); - t->priv->current_page = ephy_web_view_print_preview_n_pages (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed)); + t->priv->current_page = ephy_web_view_print_preview_n_pages (ephy_embed_get_web_view (embed)); toolbar_update_sensitivity (t); } @@ -310,7 +310,7 @@ clamp_page_limits (PPViewToolbar *t, int page) (EPHY_EMBED_CONTAINER (window)); g_return_val_if_fail (embed != NULL, -1); - pages = ephy_web_view_print_preview_n_pages (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed)); + pages = ephy_web_view_print_preview_n_pages (ephy_embed_get_web_view (embed)); return CLAMP (page, 1, pages); } @@ -327,7 +327,7 @@ toolbar_cmd_ppv_go_back (GtkUIManager *merge, t->priv->current_page = clamp_page_limits (t, t->priv->current_page - 1); - ephy_web_view_print_preview_navigate (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed), + ephy_web_view_print_preview_navigate (ephy_embed_get_web_view (embed), EPHY_WEB_VIEW_PRINTPREVIEW_GOTO_PAGENUM, t->priv->current_page); @@ -346,7 +346,7 @@ toolbar_cmd_ppv_go_forward (GtkUIManager *merge, t->priv->current_page = clamp_page_limits (t, t->priv->current_page + 1); - ephy_web_view_print_preview_navigate (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed), + ephy_web_view_print_preview_navigate (ephy_embed_get_web_view (embed), EPHY_WEB_VIEW_PRINTPREVIEW_GOTO_PAGENUM, t->priv->current_page); @@ -371,5 +371,5 @@ toolbar_cmd_ppv_close (GtkUIManager *merge, _ephy_window_set_print_preview (window, FALSE); - ephy_web_view_set_print_preview_mode (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed), FALSE); + ephy_web_view_set_print_preview_mode (ephy_embed_get_web_view (embed), FALSE); } |