[geary/mjog/1193-conversation-buttons-resize-race: 6/11] client: Add convenience accessors for conversation list/viewer being shown
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/1193-conversation-buttons-resize-race: 6/11] client: Add convenience accessors for conversation list/viewer being shown
- Date: Sun, 11 Apr 2021 06:52:45 +0000 (UTC)
commit 41fc0e556de97bc1a18b66d29a3c26d7b8d60183
Author: Michael Gratton <mike vee net>
Date: Sun Apr 11 11:21:55 2021 +1000
client: Add convenience accessors for conversation list/viewer being shown
.../application/application-main-window.vala | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
---
diff --git a/src/client/application/application-main-window.vala
b/src/client/application/application-main-window.vala
index 15e882224..ec4416194 100644
--- a/src/client/application/application-main-window.vala
+++ b/src/client/application/application-main-window.vala
@@ -282,6 +282,29 @@ public class Application.MainWindow :
get; private set; default = null;
}
+ /** Specifies if the conversation list is currently displayed. */
+ public bool is_conversation_list_shown {
+ get {
+ return (
+ (!this.outer_leaflet.folded ||
+ this.outer_leaflet.visible_child_name == INNER_LEAFLET) &&
+ (!this.inner_leaflet.folded ||
+ this.inner_leaflet.visible_child_name == CONVERSATION_LIST)
+ );
+ }
+ }
+
+ /** Specifies if the conversation viewer is currently displayed. */
+ public bool is_conversation_viewer_shown {
+ get {
+ return (
+ (!this.outer_leaflet.folded ||
+ this.outer_leaflet.visible_child_name == CONVERSATION_VIEWER) &&
+ !this.has_composer
+ );
+ }
+ }
+
/** The attachment manager for this window. */
public AttachmentManager attachments { get; private set; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]