[geary/wip/765516-gtk-widget-conversation-viewer: 120/207] Fix in-window and in-comversation composers not getting cleaned up.



commit b5efee10b162a469eebd459a6a04586751dd8bdf
Author: Michael James Gratton <mike vee net>
Date:   Wed Jul 27 23:55:25 2016 +1000

    Fix in-window and in-comversation composers not getting cleaned up.
    
    Calling destroy ensures the composer widget cleans up after itself, maybe
    because of the signal handlers added in ConversationViewer::do_compose
    and ConversationListBox::add_embedded_composer?

 src/client/composer/composer-box.vala   |    1 +
 src/client/composer/composer-embed.vala |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/client/composer/composer-box.vala b/src/client/composer/composer-box.vala
index 9c18d64..549a35f 100644
--- a/src/client/composer/composer-box.vala
+++ b/src/client/composer/composer-box.vala
@@ -65,6 +65,7 @@ public class ComposerBox : Gtk.Frame, ComposerContainer {
     public void close_container() {
         if (visible)
             vanish();
+        destroy();
     }
 }
 
diff --git a/src/client/composer/composer-embed.vala b/src/client/composer/composer-embed.vala
index db690df..95b963d 100644
--- a/src/client/composer/composer-embed.vala
+++ b/src/client/composer/composer-embed.vala
@@ -239,6 +239,6 @@ public class ComposerEmbed : Gtk.EventBox, ComposerContainer {
     public void close_container() {
         if (visible)
             vanish();
+        destroy();
     }
 }
-


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