Add window controls to conversation titlebar CSD in folded mode (#961)

This commit is contained in:
Michel Le Bihan 2020-12-21 12:38:47 +01:00 committed by fiaxh
parent 16c4c8d08b
commit 9b4f0a603b

View file

@ -132,7 +132,7 @@ public class MainWindow : Gtk.Window {
if (headerbar_paned.folded) { if (headerbar_paned.folded) {
conversation_list_titlebar_csd.decoration_layout = gtk_settings.gtk_decoration_layout; conversation_list_titlebar_csd.decoration_layout = gtk_settings.gtk_decoration_layout;
conversation_titlebar_csd.decoration_layout = ""; conversation_titlebar_csd.decoration_layout = gtk_settings.gtk_decoration_layout;
} else { } else {
string[] buttons = gtk_settings.gtk_decoration_layout.split(":"); string[] buttons = gtk_settings.gtk_decoration_layout.split(":");
conversation_list_titlebar_csd.decoration_layout = buttons[0] + ":"; conversation_list_titlebar_csd.decoration_layout = buttons[0] + ":";