[geary] Remove unnecessarily overridden ConversationWebView method. Bug 765516.



commit 06d799e3356c44c0574cd2c0099b25b1759b1841
Author: Michael James Gratton <mike vee net>
Date:   Sat Oct 8 21:01:37 2016 +1100

    Remove unnecessarily overridden ConversationWebView method. Bug 765516.
    
    * src/client/conversation-viewer/conversation-web-view.vala
      (get_preferred_size): Removed, hopefully will fix "widget tried to
      gtk_widget_get_height inside GtkWidget ::get_height" warning.

 .../conversation-viewer/conversation-web-view.vala |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-web-view.vala 
b/src/client/conversation-viewer/conversation-web-view.vala
index fa24c3f..8df34c2 100644
--- a/src/client/conversation-viewer/conversation-web-view.vala
+++ b/src/client/conversation-viewer/conversation-web-view.vala
@@ -68,24 +68,6 @@ public class ConversationWebView : StylishWebView {
         notify["zoom-level"].connect(() => { zoom_level_wrap = zoom_level; });
     }
 
-    // Overridden to get the correct height from get_preferred_height.
-    public new void get_preferred_size(out Gtk.Requisition minimum_size,
-                                       out Gtk.Requisition natural_size) {
-        base.get_preferred_size(out minimum_size, out natural_size);
-
-        int minimum = 0;
-        int natural = 0;
-        get_preferred_height(out minimum, out natural);
-        minimum_size.height = minimum;
-        natural_size.height = natural;
-
-        minimum = 0;
-        natural = 0;
-        get_preferred_width(out minimum, out natural);
-        minimum_size.width = minimum;
-        natural_size.width = natural;
-    }
-
     // Overridden since WebKitGTK+ 2.4.10 at least doesn't want to
     // report a useful height. In combination with the rules from
     // ui/conversation-web-view.css we can get an accurate idea of


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]