aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/ui/conversation_content_view/conversation_item_skeleton.vala')
-rw-r--r--main/src/ui/conversation_content_view/conversation_item_skeleton.vala26
1 files changed, 10 insertions, 16 deletions
diff --git a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
index dbba2276..a87c8489 100644
--- a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
+++ b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
@@ -22,7 +22,7 @@ public class ConversationItemSkeleton : EventBox {
private Box header_content_box = new Box(Orientation.VERTICAL, 0) { visible=true };
private ItemMetaDataHeader metadata_header;
- public ConversationItemSkeleton(StreamInteractor stream_interactor, Conversation conversation, Plugins.MetaConversationItem item) {
+ public ConversationItemSkeleton(StreamInteractor stream_interactor, Conversation conversation, Plugins.MetaConversationItem item, bool initial_item) {
this.stream_interactor = stream_interactor;
this.conversation = conversation;
this.item = item;
@@ -44,23 +44,17 @@ public class ConversationItemSkeleton : EventBox {
}
image_content_box.add(header_content_box);
- this.add(image_content_box);
-
- if (item.get_type().is_a(typeof(ContentMetaItem))) {
- this.motion_notify_event.connect((event) => {
- this.set_state_flags(StateFlags.PRELIGHT, false);
- return false;
- });
- this.enter_notify_event.connect((event) => {
- this.set_state_flags(StateFlags.PRELIGHT, false);
- return false;
- });
- this.leave_notify_event.connect((event) => {
- this.unset_state_flags(StateFlags.PRELIGHT);
- return false;
- });
+
+ if (initial_item) {
+ this.add(image_content_box);
+ } else {
+ Revealer revealer = new Revealer() { transition_duration=200, transition_type = RevealerTransitionType.SLIDE_UP, visible = true };
+ revealer.add_with_properties(image_content_box);
+ revealer.reveal_child = true;
+ this.add(revealer);
}
+
this.notify["show-skeleton"].connect(update_margin);
this.notify["last-group-item"].connect(update_margin);