fix: escape the source title in markup; capture peer comes from the source config
This commit is contained in:
1 parent
4d859d6a37
commit
dd4aed8dec
2 files changed
+13
-7
No files matched your search
+3
-3
@@ -100,9 +100,9 @@ void open_configurations(App& app) {
|
||||
GtkWidget* box = gtk_window_get_child(GTK_WINDOW(window));
|
||||
|
||||
GtkWidget* title = gtk_label_new(nullptr);
|
||||
gtk_label_set_markup(GTK_LABEL(title),
|
||||
("<b>" + app.source_title + "</b>")
|
||||
.c_str());
|
||||
char* escaped_title = g_markup_escape_text(app.source_title.c_str(), -1);
|
||||
gtk_label_set_markup(GTK_LABEL(title), (std::string("<b>") + escaped_title + "</b>").c_str());
|
||||
g_free(escaped_title);
|
||||
gtk_widget_set_halign(title, GTK_ALIGN_START);
|
||||
gtk_box_append(GTK_BOX(box), title);
|
||||
|
||||
|
||||
Reference in new issue
Block a user