diff options
author | fiaxh <git@lightrise.org> | 2022-05-14 14:45:59 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-07-27 20:34:20 +0200 |
commit | f44cbe02c17df1f02ad49c63cd784fec0ea02d85 (patch) | |
tree | 4cab9b5f84d88769d19b0698e24b318f50b6144e /main/src/ui/conversation_list/conversation_list_row.vala | |
parent | 2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603 (diff) | |
download | dino-f44cbe02c17df1f02ad49c63cd784fec0ea02d85.tar.gz dino-f44cbe02c17df1f02ad49c63cd784fec0ea02d85.zip |
Improve Gtk4 port
Diffstat (limited to 'main/src/ui/conversation_list/conversation_list_row.vala')
-rw-r--r-- | main/src/ui/conversation_list/conversation_list_row.vala | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/main/src/ui/conversation_list/conversation_list_row.vala b/main/src/ui/conversation_list/conversation_list_row.vala deleted file mode 100644 index ab4e8cee..00000000 --- a/main/src/ui/conversation_list/conversation_list_row.vala +++ /dev/null @@ -1,41 +0,0 @@ -using Gee; -using Gdk; -using Gtk; -using Pango; - -using Dino; -using Dino.Entities; -using Xmpp; - -[GtkTemplate (ui = "/im/dino/Dino/conversation_row.ui")] -public class Dino.Ui.ConversationListRow : ListBoxRow { - - [GtkChild] public unowned AvatarImage image; - [GtkChild] public unowned Label name_label; - [GtkChild] public unowned Label time_label; - [GtkChild] public unowned Label nick_label; - [GtkChild] public unowned Label message_label; - [GtkChild] public unowned Label unread_count_label; - [GtkChild] public unowned Button x_button; - [GtkChild] public unowned Revealer time_revealer; - [GtkChild] public unowned Revealer xbutton_revealer; - [GtkChild] public unowned Revealer unread_count_revealer; - [GtkChild] public unowned Revealer main_revealer; - - construct { - name_label.attributes = new AttrList(); - } - - public override void state_flags_changed(StateFlags flags) { - StateFlags curr_flags = get_state_flags(); - if ((curr_flags & StateFlags.PRELIGHT) != 0) { - time_revealer.set_reveal_child(false); - unread_count_revealer.set_reveal_child(false); - xbutton_revealer.set_reveal_child(true); - } else { - time_revealer.set_reveal_child(true); - unread_count_revealer.set_reveal_child(true); - xbutton_revealer.set_reveal_child(false); - } - } -}
\ No newline at end of file |