[geary/wip/765516-gtk-widget-conversation-viewer: 94/112] Fix in-window and in-comversation composers not getting cleaned up.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/765516-gtk-widget-conversation-viewer: 94/112] Fix in-window and in-comversation composers not getting cleaned up.
- Date: Thu, 11 Aug 2016 14:49:33 +0000 (UTC)
commit 7b302277d5afb996fa3e5f81e2c87e9ef6ebd82d
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 | 3 ++-
src/client/composer/composer-embed.vala | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/client/composer/composer-box.vala b/src/client/composer/composer-box.vala
index 4a3b170..21adfd5 100644
--- a/src/client/composer/composer-box.vala
+++ b/src/client/composer/composer-box.vala
@@ -79,10 +79,11 @@ public class ComposerBox : Gtk.Frame, ComposerContainer {
vanished();
}
-
+
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 8d46174..bb0e438 100644
--- a/src/client/composer/composer-embed.vala
+++ b/src/client/composer/composer-embed.vala
@@ -241,10 +241,10 @@ public class ComposerEmbed : Gtk.EventBox, ComposerContainer {
composer.editor.focus_out_event.disconnect(on_focus_out);
vanished();
}
-
+
public void close_container() {
if (visible)
vanish();
+ destroy();
}
}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]