[geary/wip/765516-gtk-widget-conversation-viewer: 32/142] Fix "How does the code know the size to allocate" warning.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/765516-gtk-widget-conversation-viewer: 32/142] Fix "How does the code know the size to allocate" warning.
- Date: Fri, 2 Sep 2016 04:28:19 +0000 (UTC)
commit adf3ca73a5d9f4869c601d86db3d50042b39f244
Author: Michael James Gratton <mike vee net>
Date: Fri Apr 15 19:51:11 2016 +1000
Fix "How does the code know the size to allocate" warning.
.../conversation-viewer/conversation-web-view.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-web-view.vala
b/src/client/conversation-viewer/conversation-web-view.vala
index 70a428a..f4cc8dd 100644
--- a/src/client/conversation-viewer/conversation-web-view.vala
+++ b/src/client/conversation-viewer/conversation-web-view.vala
@@ -64,6 +64,10 @@ public class ConversationWebView : StylishWebView {
// only once loaded.
public override void get_preferred_height(out int minimum_height,
out int natural_height) {
+ // Silence the "How does the code know the size to allocate?"
+ // warning in GTK 3.20-ish.
+ base.get_preferred_height(out minimum_height, out natural_height);
+
int preferred_height = 0;
if (load_status == WebKit.LoadStatus.FINISHED) {
preferred_height = (int) get_dom_document().get_body().offset_height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]