Code review comment for lp:~elementary-apps/pantheon-terminal/csd-titlebar

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

I am not sure about removing the header-bar class. If you want control over the padding and other features of the title you could use a custom title. For example:

            var header = new Gtk.HeaderBar ();
            header.set_show_close_button (true);
            var custom_title = new Gtk.Label (_("Terminal"));
            custom_title.set_padding (20,10);
            custom_title.set_ellipsize (Pango.EllipsizeMode.START);
            header.set_custom_title (custom_title);
            notify["title"].connect (() => {
                custom_title.label = title;
            });
            this.set_titlebar (header);

« Back to merge proposal