Remove spacing in headers view calendar, as it was causing a very bad
[modest] / src / widgets / modest-gtkhtml-msg-view.c
index a86d062..8f8b2ce 100644 (file)
@@ -1224,7 +1224,7 @@ modest_gtkhtml_msg_view_init (ModestGtkhtmlMsgView *obj)
                          G_CALLBACK (html_adjustment_changed), obj);
 
        gtk_widget_push_composite_child ();
-       priv->headers_box = gtk_vbox_new (FALSE, MODEST_MARGIN_DEFAULT);
+       priv->headers_box = gtk_vbox_new (FALSE, 0);
        gtk_widget_set_composite_name (priv->headers_box, "headers");
        gtk_widget_pop_composite_child ();
 
@@ -2829,8 +2829,7 @@ set_calendar (ModestGtkhtmlMsgView *self, TnyHeader *header, TnyMsg *msg)
                gtk_widget_hide_all (priv->calendar_box);
                gtk_widget_hide (priv->calendar_actions_container);
                gtk_widget_hide_all (priv->calendar_actions_container);
-               gtk_widget_hide (priv->calendar_actions_box);
+               if (priv->calendar_actions_box)
+                       gtk_widget_hide (priv->calendar_actions_box);
        }
-       
-
 }