Colomban Wendling
2014-05-21 19:51:58 UTC
[...]
The scaling factor is available from cairo_surface_get_device_scale
which returns floating point values for x and y. I have not found a
signal that says that this value is changing.
Watching the GtkWidget:scale-factor [1] property for changes (throughThe scaling factor is available from cairo_surface_get_device_scale
which returns floating point values for x and y. I have not found a
signal that says that this value is changing.
GObject::notify) should probably do it just fine.
g_signal_connect(wText, "notify::scale-factor", ...)
Also, since GtkStyleContext has a get_scale() method, I would imagine
the signal GtkStyleContext::changed would get emitted when scale changes.
All this is completely untested tho, I just gathered it from a quick
lookup at the docs.
Regards,
Colomban
[1]
https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget--scale-factor
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.