[geary/wip/713739-inline: 21/37] Use container alias instead of cast of composer parent
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/713739-inline: 21/37] Use container alias instead of cast of composer parent
- Date: Tue, 20 May 2014 20:17:25 +0000 (UTC)
commit 3d6e03e2311fabf598ebde844bfcf210925f8c6e
Author: Robert Schroll <rschroll gmail com>
Date: Thu May 15 15:41:26 2014 -0700
Use container alias instead of cast of composer parent
src/client/composer/composer-widget.vala | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 2b7602b..70ec6b2 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -712,7 +712,7 @@ public class ComposerWidget : Gtk.EventBox {
private void on_close() {
if (should_close() == CloseStatus.DO_CLOSE)
- ((ComposerContainer) parent).close();
+ container.close();
}
private bool email_contains_attachment_keywords() {
@@ -794,7 +794,7 @@ public class ComposerWidget : Gtk.EventBox {
private async void on_send_async() {
cancellable_save_draft.cancel();
- ((ComposerEmbed) parent).vanish();
+ container.vanish();
linkify_document(editor.get_dom_document());
@@ -806,7 +806,7 @@ public class ComposerWidget : Gtk.EventBox {
}
yield delete_draft_async();
- ((ComposerContainer) parent).close(); // Only close window after draft is deleted; this closes the
drafts folder.
+ container.close(); // Only close window after draft is deleted; this closes the drafts folder.
}
private void on_drafts_opened(Geary.Folder.OpenState open_state, int count) {
@@ -878,7 +878,7 @@ public class ComposerWidget : Gtk.EventBox {
// Used while waiting for draft to save before closing widget.
private void make_gui_insensitive() {
- ((ComposerContainer) parent).vanish();
+ container.vanish();
// Halt draft timer.
if (draft_save_timeout_id != 0)
@@ -891,7 +891,7 @@ public class ComposerWidget : Gtk.EventBox {
// Do the save.
yield save_async(null);
- ((ComposerContainer) parent).close();
+ container.close();
}
private async void delete_and_exit() {
@@ -900,7 +900,7 @@ public class ComposerWidget : Gtk.EventBox {
// Do the delete.
yield delete_draft_async();
- ((ComposerContainer) parent).close();
+ container.close();
}
private async void delete_draft_async() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]