Add topic layout prefs for inline modes/multiline topics

This commit is contained in:
2026-06-20 04:09:45 -06:00
parent cacc8fcafe
commit 1b98297881
5 changed files with 70 additions and 19 deletions

View File

@@ -812,18 +812,19 @@ fe_set_topic (session *sess, char *topic, char *stripped_topic)
{
if (!sess->gui->is_tab || sess == current_tab)
{
GtkTextBuffer *topic_buffer;
GtkTextIter start;
topic_buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (sess->gui->topic_entry));
if (prefs.hex_text_stripcolor_topic)
{
gtk_text_buffer_set_text (
gtk_text_view_get_buffer (GTK_TEXT_VIEW (sess->gui->topic_entry)),
stripped_topic, -1);
}
gtk_text_buffer_set_text (topic_buffer, stripped_topic, -1);
else
{
gtk_text_buffer_set_text (
gtk_text_view_get_buffer (GTK_TEXT_VIEW (sess->gui->topic_entry)),
topic, -1);
}
gtk_text_buffer_set_text (topic_buffer, topic, -1);
gtk_text_buffer_get_start_iter (topic_buffer, &start);
gtk_text_buffer_place_cursor (topic_buffer, &start);
gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (sess->gui->topic_entry),
&start, 0.0, FALSE, 0.0, 0.0);
mg_set_topic_tip (sess);
}
else