From f44cbe02c17df1f02ad49c63cd784fec0ea02d85 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 14 May 2022 14:45:59 +0200 Subject: Improve Gtk4 port --- .../conversation_selector/conversation_selector_row.vala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'main/src/ui/conversation_selector/conversation_selector_row.vala') diff --git a/main/src/ui/conversation_selector/conversation_selector_row.vala b/main/src/ui/conversation_selector/conversation_selector_row.vala index f813ddfc..76cbabb3 100644 --- a/main/src/ui/conversation_selector/conversation_selector_row.vala +++ b/main/src/ui/conversation_selector/conversation_selector_row.vala @@ -229,11 +229,11 @@ public class ConversationSelectorRow : ListBoxRow { unread_count_label.visible = true; if (conversation.get_notification_setting(stream_interactor) == Conversation.NotifySetting.ON) { - unread_count_label.get_style_context().add_class("unread-count-notify"); - unread_count_label.get_style_context().remove_class("unread-count"); + unread_count_label.add_css_class("unread-count-notify"); + unread_count_label.remove_css_class("unread-count"); } else { - unread_count_label.get_style_context().add_class("unread-count"); - unread_count_label.get_style_context().remove_class("unread-count-notify"); + unread_count_label.add_css_class("unread-count"); + unread_count_label.remove_css_class("unread-count-notify"); } name_label.attributes.insert(attr_weight_new(Weight.BOLD)); @@ -266,7 +266,7 @@ public class ConversationSelectorRow : ListBoxRow { private Widget generate_tooltip() { Grid grid = new Grid() { row_spacing=5, column_homogeneous=false, column_spacing=5, margin_start=7, margin_end=7, margin_top=7, margin_bottom=7 }; - Label label = new Label(conversation.counterpart.to_string()) { valign=Align.START, xalign=0, visible=true }; + Label label = new Label(conversation.counterpart.to_string()) { valign=Align.START, xalign=0 }; label.attributes = new AttrList(); label.attributes.insert(attr_weight_new(Weight.BOLD)); @@ -284,7 +284,7 @@ public class ConversationSelectorRow : ListBoxRow { stream_interactor.get_module(EntityInfo.IDENTITY).get_identity.begin(conversation.account, full_jid, (_, res) => { Xep.ServiceDiscovery.Identity? identity = stream_interactor.get_module(EntityInfo.IDENTITY).get_identity.end(res); - Image image = new Image() { hexpand=false, valign=Align.CENTER, visible=true }; + Image image = new Image() { hexpand=false, valign=Align.CENTER }; if (identity != null && (identity.type_ == Xep.ServiceDiscovery.Identity.TYPE_PHONE || identity.type_ == Xep.ServiceDiscovery.Identity.TYPE_TABLET)) { image.set_from_icon_name("dino-device-phone-symbolic"); } else { @@ -322,7 +322,7 @@ public class ConversationSelectorRow : ListBoxRow { sb.append(" (").append(status).append(")"); } - Label resource = new Label(sb.str) { use_markup=true, hexpand=true, xalign=0, visible=true }; + Label resource = new Label(sb.str) { use_markup=true, hexpand=true, xalign=0 }; grid.attach(image, 0, i_cache + 1, 1, 1); grid.attach(resource, 1, i_cache + 1, 1, 1); -- cgit v1.2.3-54-g00ecf