src/Settings.vala
authorAlan <alan@roojs.com>
Thu, 8 Feb 2024 09:42:33 +0000 (17:42 +0800)
committerAlan <alan@roojs.com>
Thu, 8 Feb 2024 09:42:33 +0000 (17:42 +0800)
src/Settings.vala

index 803c569..5dc7232 100644 (file)
@@ -31,9 +31,8 @@ public class Settings : Object  {
                                );
                        }
                        this.save();
-                       GLib.Type type = typeof (Settings);
-                       ObjectClass ocl = (GLib.ObjectClass) type.class_ref ();
-                       this.notify(ocl.find_property ("editor_font_size"));
+
+                       this.notify(this.get_class().find_property ("editor_font_size"));
                }
                
        }