Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
projects:ui-scaling [2023/01/02 10:40] – created kelnosprojects:ui-scaling [2023/01/02 10:52] – [Basics] kelnos
Line 9: Line 9:
   * If you don't even have a window, you can use ''gdk_monitor_get_scale_factor()''.   * If you don't even have a window, you can use ''gdk_monitor_get_scale_factor()''.
   * Scale factors are (unfortunately) integer-only.  There's no such thing as a 1.5x scale, for example.   * Scale factors are (unfortunately) integer-only.  There's no such thing as a 1.5x scale, for example.
 +  * You can connect to ''notify::scale-factor'' on a `GtkWidget` or `GdkMonitor` instance to know when you might need to reload icons at a new scale factor.
 ===== Things that work ===== ===== Things that work =====