In line CSS for GtkAlertDialog detail

Is it possible to add pango like inline markup to the text in the detail of a GtkAlertDialog?

I’m presuming the answer is no since it doesn’t work and there is no mention of it in the docs 8-(

Hi,

It’s not possible because alert dialogs may switch to native platform dialogs in the future, and not all platforms support Pango, for example on Windows.

You may want to look at Adw.AlertDialog instead, which offers a Adw.AlertDialog:body-use-markup property exactly for that purpose.

That’s not a thing: Pango works perfectly fine on Windows.

There’s also no “native platform dialog” for an alert window, unlike file selection or printing.

No. If you need that kind of control on the appearance of the dialog, then you’re much better off creating your own top level.

I may have phrased unclearly… :slight_smile:

Yes, currently, but I remember reading somewhere (can’t find the reference anymore) that using native dialogs like MessageBox() on Windows may be considered in the future for some Gtk dialogs, in which case Pango can’t be supported.

But yes in general Pango works on Windows.