aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-12-20 22:43:15 +0100
committerMarvin W <git@larma.de>2023-01-24 19:20:43 +0100
commit92aca5672db723121471e513e83b68742761d1b5 (patch)
treea97b326efbe54f68817415ceaaed2b694e428fcd
parent0d7c8bb6e117f8cdd631730302413aad21632c2d (diff)
downloaddino-92aca5672db723121471e513e83b68742761d1b5.tar.gz
dino-92aca5672db723121471e513e83b68742761d1b5.zip
Improve libadwaita integration
-rw-r--r--main/data/conversation_list_titlebar_csd.ui2
-rw-r--r--main/src/ui/conversation_selector/conversation_selector.vala9
2 files changed, 2 insertions, 9 deletions
diff --git a/main/data/conversation_list_titlebar_csd.ui b/main/data/conversation_list_titlebar_csd.ui
index c793c2cc..afe10926 100644
--- a/main/data/conversation_list_titlebar_csd.ui
+++ b/main/data/conversation_list_titlebar_csd.ui
@@ -9,6 +9,7 @@
</style>
<child>
<object class="GtkMenuButton" id="add_button">
+ <property name="has-frame">False</property>
<child>
<object class="GtkImage">
<property name="icon-name">list-add-symbolic</property>
@@ -19,6 +20,7 @@
</child>
<child type="end">
<object class="GtkMenuButton" id="menu_button">
+ <property name="has-frame">False</property>
<child>
<object class="GtkImage">
<property name="icon-name">open-menu-symbolic</property>
diff --git a/main/src/ui/conversation_selector/conversation_selector.vala b/main/src/ui/conversation_selector/conversation_selector.vala
index 8a4506f3..925a462a 100644
--- a/main/src/ui/conversation_selector/conversation_selector.vala
+++ b/main/src/ui/conversation_selector/conversation_selector.vala
@@ -38,7 +38,6 @@ public class ConversationSelector : Widget {
construct {
add_css_class("sidebar");
- list_box.set_header_func(header);
list_box.set_sort_func(sort);
realize.connect(() => {
@@ -139,14 +138,6 @@ public class ConversationSelector : Widget {
}
}
- private void header(ListBoxRow row, ListBoxRow? before_row) {
- if (row.get_header() == null && before_row != null) {
- row.set_header(new Separator(Orientation.HORIZONTAL));
- } else if (row.get_header() != null && before_row == null) {
- row.set_header(null);
- }
- }
-
private int sort(ListBoxRow row1, ListBoxRow row2) {
ConversationSelectorRow cr1 = row1 as ConversationSelectorRow;
ConversationSelectorRow cr2 = row2 as ConversationSelectorRow;