[gnome-web-photo/webkit] Set the maximum height of the offscreen window to the cairo limit
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-web-photo/webkit] Set the maximum height of the offscreen window to the cairo limit
- Date: Wed, 16 Feb 2011 16:29:30 +0000 (UTC)
commit b75bf0f11f1dc13ea2a64fee68b1b2b71614c63e
Author: Vincent Untz <vuntz gnome org>
Date: Wed Feb 16 12:14:51 2011 +0100
Set the maximum height of the offscreen window to the cairo limit
src/gnome-web-photo.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-web-photo.c b/src/gnome-web-photo.c
index 3476fc5..53c9ef5 100644
--- a/src/gnome-web-photo.c
+++ b/src/gnome-web-photo.c
@@ -59,6 +59,10 @@
#define DEFAULT_MONOSPACE_FONT "Monospace 10"
#define DEFAULT_MINIMUM_SIZE 7
+/* Value to keep in sync with the one from cairo:
+ * MAX_IMAGE_SIZE in cairo-image-surface.c */
+#define MAX_SIZE 32767
+
#define MIN_WIDTH 64
#define MAX_WIDTH 2048
#define DEFAULT_WIDTH 1024
@@ -638,6 +642,8 @@ _create_web_window (PhotoData *data)
* related to what is displayed). So it only affects MODE_PHOTO. But it's
* better than not getting anything anyway. */
gtk_widget_set_size_request (window, data->width, -1);
+ photo_offscreen_window_set_max_height (PHOTO_OFFSCREEN_WINDOW (window),
+ MAX_SIZE);
webview = webkit_web_view_new ();
data->webview = WEBKIT_WEB_VIEW (webview);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]