File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: LGPL-2.0-or-later
44 */
55
6- /* Clutter.Text with automatic management of system font */
6+ /*
7+ * Clutter.Text that automatically changes font-name to the system one
8+ */
79public class Gala.Text : Clutter .Text {
8- private GLib . Settings gnome_interface_settings;
10+ private static GLib . Settings gnome_interface_settings;
911
10- construct {
12+ static construct {
1113 gnome_interface_settings = new GLib .Settings (" org.gnome.desktop.interface" );
14+ }
1215
16+ construct {
1317 set_system_font_name ();
14- gnome_interface_settings. notify [" font-name" ]. connect (set_system_font_name);
18+ gnome_interface_settings. changed [" font-name" ]. connect (set_system_font_name);
1519 }
1620
1721 private void set_system_font_name () {
@@ -25,5 +29,7 @@ public class Gala.Text : Clutter.Text {
2529 }
2630
2731 font_name = string . joinv (" " , name);
32+
33+ warning (" Gala.Text: Changing font to %s " , font_name);
2834 }
2935}
You can’t perform that action at this time.
0 commit comments