[geary/wip/draft-management: 26/27] Fix composers that open detached having a visible detach button



commit f68970ac86a59173f8e7bc527bd96f996a8168c4
Author: Michael Gratton <mike vee net>
Date:   Fri Aug 2 12:49:59 2019 +1000

    Fix composers that open detached having a visible detach button

 src/client/composer/composer-widget.vala | 1 -
 src/client/composer/composer-window.vala | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index fbcb6689..a65e5e65 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -1263,7 +1263,6 @@ public class ComposerWidget : Gtk.EventBox, Geary.BaseInterface {
         );
 
         this.state = ComposerWidget.ComposerState.DETACHED;
-        this.header.detached();
         update_composer_view();
 
         // If the previously focused widget is in the new composer
diff --git a/src/client/composer/composer-window.vala b/src/client/composer/composer-window.vala
index f8165be5..28629dce 100644
--- a/src/client/composer/composer-window.vala
+++ b/src/client/composer/composer-window.vala
@@ -32,6 +32,7 @@ public class ComposerWindow : Gtk.ApplicationWindow, ComposerContainer {
     public ComposerWindow(ComposerWidget composer, GearyApplication application) {
         Object(application: application, type: Gtk.WindowType.TOPLEVEL);
         this.composer = composer;
+        this.composer.header.detached();
 
         // XXX Bug 764622
         set_property("name", "GearyComposerWindow");


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