[anjal] Set the height only if its valid.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] Set the height only if its valid.
- Date: Tue, 21 Apr 2009 15:15:33 -0400 (EDT)
commit e56af8457fadf45e05c058119733121981aa88d2
Author: Srinivasa Ragavan <sragavan novell com>
Date: Wed Apr 22 00:40:37 2009 +0530
Set the height only if its valid.
---
src/em-webkit-stream.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/em-webkit-stream.c b/src/em-webkit-stream.c
index 79016d0..93e2268 100644
--- a/src/em-webkit-stream.c
+++ b/src/em-webkit-stream.c
@@ -112,7 +112,9 @@ static int
emws_sync_close(CamelStream *stream)
{
EMWebKitStream *emws = (EMWebKitStream *)stream;
- gtk_widget_set_size_request (emws->view, -1, webkit_web_frame_get_height(webkit_web_view_get_main_frame(emws->view)));
+ if (webkit_web_frame_get_height(webkit_web_view_get_main_frame(emws->view)))
+ gtk_widget_set_size_request (emws->view, -1, webkit_web_frame_get_height(webkit_web_view_get_main_frame(emws->view)));
+
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]