GTK4: markup text in dialogs

Hi everyone,
is there a way to use markup text in dialogs?

Otherwise, is it proper to use a markup dialog without getting deprecation messages (and not using G_GNUC_*_IGNORE_DEPRECATIONS macros) in this way?

  GtkWidget *help = g_object_new(GTK_TYPE_MESSAGE_DIALOG,
    "transient-for", window,
    "destroy-with-parent", true,
    "modal", true,
    "text", g_get_prgname(),
    "secondary-text", help_message,
    "secondary-use-markup", true,
    "buttons", GTK_BUTTONS_OK,
  if (GTK_IS_WINDOW(help)) {
    g_signal_connect(help, "response", G_CALLBACK(gtk_window_destroy), NULL);

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.