X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosuilib%2FAltosUIPreferences.java;fp=altosuilib%2FAltosUIPreferences.java;h=c40903ced0c37c590214b11d764af264bde8714e;hp=7e3178d8dd887a926ebc28d127e084801b91d056;hb=ffbd99545ca0462161c24e0ed86978544f2c28f6;hpb=521dc6dbf9aa5f7aad7829cd98a815031725ac24 diff --git a/altosuilib/AltosUIPreferences.java b/altosuilib/AltosUIPreferences.java index 7e3178d8..c40903ce 100644 --- a/altosuilib/AltosUIPreferences.java +++ b/altosuilib/AltosUIPreferences.java @@ -129,18 +129,23 @@ public class AltosUIPreferences extends AltosPreferences { backend.putInt(fontSizePreference, font_size); flush_preferences(); AltosUILib.set_fonts(font_size); - for (AltosFontListener l : font_listeners) + for (AltosFontListener l : font_listeners) { + System.out.printf("notifying %s of font size change\n", l); l.font_size_changed(font_size); + } + System.out.printf("all fonts changed\n"); } } public static void register_font_listener(AltosFontListener l) { + System.out.printf("register font listener\n"); synchronized (backend) { font_listeners.add(l); } } public static void unregister_font_listener(AltosFontListener l) { + System.out.printf("unregister font listener\n"); synchronized (backend) { font_listeners.remove(l); }