[geary/wip/765516-gtk-widget-conversation-viewer: 191/207] Update composer container style implementations a bit.



commit c0a9de8726b2919c572041bb7103e8768c96b27a
Author: Michael James Gratton <mike vee net>
Date:   Mon Sep 19 14:24:45 2016 +1000

    Update composer container style implementations a bit.
    
     * src/client/composer/composer-box.vala,
       src/client/composer/composer-embed.vala: Use vexpand so as to work
       with GtkGrid, use consistent GTK CSS classes.

 src/client/composer/composer-box.vala   |    6 ++++--
 src/client/composer/composer-embed.vala |    5 ++++-
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/client/composer/composer-box.vala b/src/client/composer/composer-box.vala
index 549a35f..fa64bab 100644
--- a/src/client/composer/composer-box.vala
+++ b/src/client/composer/composer-box.vala
@@ -24,14 +24,16 @@ public class ComposerBox : Gtk.Frame, ComposerContainer {
 
     public ComposerBox(ComposerWidget composer) {
         this.composer = composer;
+        get_style_context().add_class("geary-composer-box");
+        this.halign = Gtk.Align.FILL;
+        this.vexpand = true;
+        this.vexpand_set = true;
 
         add(this.composer);
         this.composer.editor.focus_in_event.connect(on_focus_in);
         this.composer.editor.focus_out_event.connect(on_focus_out);
         show();
 
-        get_style_context().add_class("geary-composer-box");
-
         if (this.composer.state == ComposerWidget.ComposerState.NEW) {
             this.composer.free_header();
             GearyApplication.instance.controller.main_window.main_toolbar.set_conversation_header(
diff --git a/src/client/composer/composer-embed.vala b/src/client/composer/composer-embed.vala
index 95b963d..7a698ed 100644
--- a/src/client/composer/composer-embed.vala
+++ b/src/client/composer/composer-embed.vala
@@ -40,8 +40,11 @@ public class ComposerEmbed : Gtk.EventBox, ComposerContainer {
         this.referred = referred;
         this.composer = composer;
         this.outer_scroller = outer_scroller;
+
+        get_style_context().add_class("geary-composer-embed");
         this.halign = Gtk.Align.FILL;
-        this.valign = Gtk.Align.FILL;
+        this.vexpand = true;
+        this.vexpand_set = true;
 
         add(composer);
         realize.connect(on_realize);


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