aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-zoom-action.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2011-12-15 04:45:43 +0800
committerXan Lopez <xan@igalia.com>2011-12-15 04:45:43 +0800
commita9397985aaf2dd1f4279b7b355de0c14f628f814 (patch)
tree8803f41f991bb9862c51cc658c6924eeaa1658d2 /lib/widgets/ephy-zoom-action.c
parentf60cd7fc43d25855cafaab84e655e0f2b99c95ee (diff)
downloadgsoc2013-epiphany-a9397985aaf2dd1f4279b7b355de0c14f628f814.tar
gsoc2013-epiphany-a9397985aaf2dd1f4279b7b355de0c14f628f814.tar.gz
gsoc2013-epiphany-a9397985aaf2dd1f4279b7b355de0c14f628f814.tar.bz2
gsoc2013-epiphany-a9397985aaf2dd1f4279b7b355de0c14f628f814.tar.lz
gsoc2013-epiphany-a9397985aaf2dd1f4279b7b355de0c14f628f814.tar.xz
gsoc2013-epiphany-a9397985aaf2dd1f4279b7b355de0c14f628f814.tar.zst
gsoc2013-epiphany-a9397985aaf2dd1f4279b7b355de0c14f628f814.zip
ephy-zoom-control: remove, there are no zoom toolbar items anymore
Diffstat (limited to 'lib/widgets/ephy-zoom-action.c')
-rw-r--r--lib/widgets/ephy-zoom-action.c44
1 files changed, 3 insertions, 41 deletions
diff --git a/lib/widgets/ephy-zoom-action.c b/lib/widgets/ephy-zoom-action.c
index 0d42b9ce9..86d8a06f8 100644
--- a/lib/widgets/ephy-zoom-action.c
+++ b/lib/widgets/ephy-zoom-action.c
@@ -19,13 +19,12 @@
*/
#include "config.h"
-
-#include <glib/gi18n.h>
-
#include "ephy-zoom-action.h"
-#include "ephy-zoom-control.h"
+
#include "ephy-zoom.h"
+#include <glib/gi18n.h>
+
/**
* SECTION:ephy-zoom-action
* @short_description: A #GtkAction implementing a zoom control
@@ -61,41 +60,6 @@ static guint signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (EphyZoomAction, ephy_zoom_action, GTK_TYPE_ACTION)
static void
-zoom_to_level_cb (EphyZoomControl *control,
- float zoom,
- EphyZoomAction *action)
-{
- g_signal_emit (action, signals[ZOOM_TO_LEVEL_SIGNAL], 0, zoom);
-}
-
-static void
-sync_zoom_cb (GtkAction *action, GParamSpec *pspec, GtkWidget *proxy)
-{
- EphyZoomAction *zoom_action = EPHY_ZOOM_ACTION (action);
-
- g_object_set (G_OBJECT (proxy), "zoom", zoom_action->priv->zoom, NULL);
-}
-
-static void
-connect_proxy (GtkAction *action, GtkWidget *proxy)
-{
- if (EPHY_IS_ZOOM_CONTROL (proxy))
- {
- /* Ensure the sync is done when the item is added to
- the toolbar */
- sync_zoom_cb (action, NULL, proxy);
-
- g_signal_connect_object (action, "notify::zoom",
- G_CALLBACK (sync_zoom_cb), proxy, 0);
-
- g_signal_connect (proxy, "zoom_to_level",
- G_CALLBACK (zoom_to_level_cb), action);
- }
-
- GTK_ACTION_CLASS (ephy_zoom_action_parent_class)->connect_proxy (action, proxy);
-}
-
-static void
proxy_menu_activate_cb (GtkMenuItem *menu_item, EphyZoomAction *action)
{
gint index;
@@ -195,8 +159,6 @@ ephy_zoom_action_class_init (EphyZoomActionClass *class)
object_class->set_property = ephy_zoom_action_set_property;
object_class->get_property = ephy_zoom_action_get_property;
- action_class->toolbar_item_type = EPHY_TYPE_ZOOM_CONTROL;
- action_class->connect_proxy = connect_proxy;
action_class->create_menu_item = create_menu_item;
/**