aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-03-02 22:35:17 +0800
committerXan Lopez <xan@igalia.com>2013-03-02 22:35:17 +0800
commit3852359c303eef0be57b4a5997af14ed9f4b5835 (patch)
tree981bb33e27111c8d80911eb8bc0ef3ee1895077e
parentb5b4d3a8680ac4b7c7358af782cc823213b412bc (diff)
downloadgsoc2013-epiphany-3852359c303eef0be57b4a5997af14ed9f4b5835.tar
gsoc2013-epiphany-3852359c303eef0be57b4a5997af14ed9f4b5835.tar.gz
gsoc2013-epiphany-3852359c303eef0be57b4a5997af14ed9f4b5835.tar.bz2
gsoc2013-epiphany-3852359c303eef0be57b4a5997af14ed9f4b5835.tar.lz
gsoc2013-epiphany-3852359c303eef0be57b4a5997af14ed9f4b5835.tar.xz
gsoc2013-epiphany-3852359c303eef0be57b4a5997af14ed9f4b5835.tar.zst
gsoc2013-epiphany-3852359c303eef0be57b4a5997af14ed9f4b5835.zip
ephy-web-view: remove unused method
-rw-r--r--embed/ephy-embed-private.h6
-rw-r--r--embed/ephy-web-view.c38
2 files changed, 0 insertions, 44 deletions
diff --git a/embed/ephy-embed-private.h b/embed/ephy-embed-private.h
index 8d342fe8c..d023efb6a 100644
--- a/embed/ephy-embed-private.h
+++ b/embed/ephy-embed-private.h
@@ -61,12 +61,6 @@ void ephy_web_view_load_homepage (EphyWebView
char * ephy_web_view_create_web_application (EphyWebView *view,
const char *title,
GdkPixbuf *icon);
-GdkPixbuf * ephy_web_view_get_snapshot (EphyWebView *view,
- int x,
- int y,
- int width,
- int height);
-
char* ephy_web_view_normalize_or_autosearch_url (EphyWebView *view,
const char *url);
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 359392265..3ddf2b56e 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3978,44 +3978,6 @@ ephy_web_view_load_homepage (EphyWebView *view)
}
/**
- * ephy_web_view_get_snapshot:
- * @view: the #EphyWebView
- * @x: the x coordinate of the snapshot
- * @y: the y coordinate of the snapshot
- * @width: the width of the snapshot
- * @height: the height of the snapshot
- *
- * Takes a snapshot of the requested region of a #EphyWebView.
- *
- * Returns: (transfer full): a #GdkPixbuf with a snapshot of the requested area.
- **/
-GdkPixbuf *
-ephy_web_view_get_snapshot (EphyWebView *view, int x, int y, int width, int height)
-{
- cairo_surface_t *surface;
- cairo_t *cr;
- GdkPixbuf *snapshot;
- GtkAllocation allocation;
-
- g_return_val_if_fail (EPHY_IS_WEB_VIEW (view), NULL);
-
- gtk_widget_get_allocation (GTK_WIDGET (view), &allocation);
- surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24,
- allocation.width,
- allocation.height);
- cr = cairo_create (surface);
- cairo_rectangle (cr, x, y, width, height);
- cairo_clip (cr);
- gtk_widget_draw (GTK_WIDGET (view), cr);
-
- snapshot = gdk_pixbuf_get_from_surface (surface, x, y, width, height);
- cairo_destroy (cr);
- cairo_surface_destroy (surface);
-
- return snapshot;
-}
-
-/**
* ephy_web_view_get_visit_type:
* @view: an #EphyWebView
*