aboutsummaryrefslogtreecommitdiffstats
path: root/src/ppview-toolbar.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-11-16 23:03:10 +0800
committerXan Lopez <xan@src.gnome.org>2007-11-16 23:03:10 +0800
commitb7d6a7384621691379618b0be22bef0f58b30414 (patch)
tree378d3377f3290f3461b23f25349579077ff0bdb3 /src/ppview-toolbar.c
parent1b8bf4b88fb016020c822e5a9208a89ed8ebbdc4 (diff)
downloadgsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.gz
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.zst
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.zip
And port all the callers in src/
svn path=/trunk/; revision=7695
Diffstat (limited to 'src/ppview-toolbar.c')
-rw-r--r--src/ppview-toolbar.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/ppview-toolbar.c b/src/ppview-toolbar.c
index b8000d737..357af3e89 100644
--- a/src/ppview-toolbar.c
+++ b/src/ppview-toolbar.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright © 2002 Marco Pesenti Gritti
*
@@ -21,6 +22,7 @@
#include "config.h"
#include "ppview-toolbar.h"
+#include "ephy-embed-container.h"
#include "ephy-window.h"
#include <string.h>
@@ -206,7 +208,8 @@ toolbar_update_sensitivity (PPViewToolbar *t)
GtkAction *action;
GtkActionGroup *action_group = t->priv->action_group;
- embed = ephy_window_get_active_tab (window);
+ embed = ephy_embed_container_get_active_child
+ (EPHY_EMBED_CONTAINER (window));
g_return_if_fail (embed != NULL);
pages = ephy_embed_print_preview_n_pages (embed);
@@ -301,7 +304,7 @@ toolbar_cmd_ppv_goto_first (GtkUIManager *merge,
EphyWindow *window = t->priv->window;
EphyEmbed *embed;
- embed = ephy_window_get_active_tab (window);
+ 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);
@@ -318,7 +321,7 @@ toolbar_cmd_ppv_goto_last (GtkUIManager *merge,
EphyWindow *window = t->priv->window;
EphyEmbed *embed;
- embed = ephy_window_get_active_tab (window);
+ embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window));
g_return_if_fail (embed != NULL);
ephy_embed_print_preview_navigate (embed,
@@ -337,7 +340,8 @@ clamp_page_limits (PPViewToolbar *t, int page)
EphyEmbed *embed;
int pages;
- embed = ephy_window_get_active_tab (window);
+ embed = ephy_embed_container_get_active_child
+ (EPHY_EMBED_CONTAINER (window));
g_return_val_if_fail (embed != NULL, -1);
pages = ephy_embed_print_preview_n_pages (embed);
@@ -349,10 +353,10 @@ static void
toolbar_cmd_ppv_go_back (GtkUIManager *merge,
PPViewToolbar *t)
{
- EphyWindow *window = t->priv->window;
+ EphyEmbedContainer *window = EPHY_EMBED_CONTAINER (t->priv->window);
EphyEmbed *embed;
- embed = ephy_window_get_active_tab (window);
+ embed = ephy_embed_container_get_active_child (window);
g_return_if_fail (EPHY_IS_EMBED (embed));
t->priv->current_page = clamp_page_limits (t, t->priv->current_page - 1);
@@ -371,7 +375,7 @@ toolbar_cmd_ppv_go_forward (GtkUIManager *merge,
EphyWindow *window = t->priv->window;
EphyEmbed *embed;
- embed = ephy_window_get_active_tab (window);
+ embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window));
g_return_if_fail (EPHY_IS_EMBED (embed));
t->priv->current_page = clamp_page_limits (t, t->priv->current_page + 1);
@@ -395,7 +399,8 @@ toolbar_cmd_ppv_close (GtkUIManager *merge,
window = t->priv->window;
g_return_if_fail (EPHY_IS_WINDOW (window));
- embed = ephy_window_get_active_tab (window);
+ embed = ephy_embed_container_get_active_child
+ (EPHY_EMBED_CONTAINER (window));
g_return_if_fail (EPHY_IS_EMBED (embed));
ephy_window_set_print_preview (window, FALSE);