aboutsummaryrefslogtreecommitdiffstats
path: root/src/ppview-toolbar.c
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-06-05 21:32:55 +0800
committerXan Lopez <xan@gnome.org>2009-06-05 22:54:08 +0800
commit8f3aa835aa3fb12e8f9805c3ecb454027398102c (patch)
tree94223e73426ef759ad4176c33ef3a659895eb0ac /src/ppview-toolbar.c
parent1d49b43e4da3c5153a444596b24340d40ad98d31 (diff)
downloadgsoc2013-epiphany-8f3aa835aa3fb12e8f9805c3ecb454027398102c.tar
gsoc2013-epiphany-8f3aa835aa3fb12e8f9805c3ecb454027398102c.tar.gz
gsoc2013-epiphany-8f3aa835aa3fb12e8f9805c3ecb454027398102c.tar.bz2
gsoc2013-epiphany-8f3aa835aa3fb12e8f9805c3ecb454027398102c.tar.lz
gsoc2013-epiphany-8f3aa835aa3fb12e8f9805c3ecb454027398102c.tar.xz
gsoc2013-epiphany-8f3aa835aa3fb12e8f9805c3ecb454027398102c.tar.zst
gsoc2013-epiphany-8f3aa835aa3fb12e8f9805c3ecb454027398102c.zip
Move all methods, signals and properties from EphyEmbed and EphyBaseEmbed to EphyWebView.
Those two embed classes are pretty much dummy leftovers, so it should be easier to remove them now.
Diffstat (limited to 'src/ppview-toolbar.c')
-rw-r--r--src/ppview-toolbar.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/ppview-toolbar.c b/src/ppview-toolbar.c
index a5b89abdc..dbc571980 100644
--- a/src/ppview-toolbar.c
+++ b/src/ppview-toolbar.c
@@ -22,6 +22,7 @@
#include "ppview-toolbar.h"
#include "ephy-embed-container.h"
+#include "ephy-embed-utils.h"
#include "ephy-window.h"
#include <string.h>
@@ -177,7 +178,7 @@ toolbar_update_sensitivity (PPViewToolbar *t)
(EPHY_EMBED_CONTAINER (window));
g_return_if_fail (embed != NULL);
- pages = ephy_embed_print_preview_n_pages (embed);
+ pages = ephy_web_view_print_preview_n_pages (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed));
c_page = t->priv->current_page;
action = gtk_action_group_get_action (action_group, "PPVGoBack");
@@ -272,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_embed_print_preview_navigate (embed, EPHY_EMBED_PRINTPREVIEW_HOME, 0);
+ ephy_web_view_print_preview_navigate (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed), EPHY_WEB_VIEW_PRINTPREVIEW_HOME, 0);
t->priv->current_page = 1;
@@ -289,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_embed_print_preview_navigate (embed,
- EPHY_EMBED_PRINTPREVIEW_END,
- 0);
+ ephy_web_view_print_preview_navigate (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed),
+ EPHY_WEB_VIEW_PRINTPREVIEW_END,
+ 0);
- t->priv->current_page = ephy_embed_print_preview_n_pages (embed);
+ t->priv->current_page = ephy_web_view_print_preview_n_pages (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed));
toolbar_update_sensitivity (t);
}
@@ -309,7 +310,7 @@ clamp_page_limits (PPViewToolbar *t, int page)
(EPHY_EMBED_CONTAINER (window));
g_return_val_if_fail (embed != NULL, -1);
- pages = ephy_embed_print_preview_n_pages (embed);
+ pages = ephy_web_view_print_preview_n_pages (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed));
return CLAMP (page, 1, pages);
}
@@ -326,9 +327,9 @@ toolbar_cmd_ppv_go_back (GtkUIManager *merge,
t->priv->current_page = clamp_page_limits (t, t->priv->current_page - 1);
- ephy_embed_print_preview_navigate (embed,
- EPHY_EMBED_PRINTPREVIEW_GOTO_PAGENUM,
- t->priv->current_page);
+ ephy_web_view_print_preview_navigate (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed),
+ EPHY_WEB_VIEW_PRINTPREVIEW_GOTO_PAGENUM,
+ t->priv->current_page);
toolbar_update_sensitivity (t);
}
@@ -345,9 +346,9 @@ toolbar_cmd_ppv_go_forward (GtkUIManager *merge,
t->priv->current_page = clamp_page_limits (t, t->priv->current_page + 1);
- ephy_embed_print_preview_navigate (embed,
- EPHY_EMBED_PRINTPREVIEW_GOTO_PAGENUM,
- t->priv->current_page);
+ ephy_web_view_print_preview_navigate (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed),
+ EPHY_WEB_VIEW_PRINTPREVIEW_GOTO_PAGENUM,
+ t->priv->current_page);
toolbar_update_sensitivity (t);
}
@@ -370,5 +371,5 @@ toolbar_cmd_ppv_close (GtkUIManager *merge,
_ephy_window_set_print_preview (window, FALSE);
- ephy_embed_set_print_preview_mode (embed, FALSE);
+ ephy_web_view_set_print_preview_mode (EPHY_GET_EPHY_WEB_VIEW_FROM_EMBED (embed), FALSE);
}