@@ -159,9 +159,7 @@ namespace jorts {
159159
160160 view = new jorts. StickyView (this . content);
161161
162- view. buffer. changed. connect (() = > {
163- on_buffer_changed();
164- });
162+ view. buffer. changed. connect (on_buffer_changed);
165163
166164 scrolled. set_child (view);
167165
@@ -232,14 +230,10 @@ namespace jorts {
232230 this.set_zoom (data .zoom );
233231
234232 // The settings popover tells us a new theme has been chosen!
235- this.popover.theme_changed.connect ((selected ) => {
236- this . update_theme(selected);
237- });
233+ this.popover.theme_changed.connect (update_theme );
238234
239235 // The settings popover tells us a new zoom has been chosen!
240- this.popover.zoom_changed.connect ((zoomkind ) => {
241- this . on_zoom_changed(zoomkind);
242- });
236+ this.popover.zoom_changed.connect (on_zoom_changed );
243237
244238 var app_button = new Gtk .MenuButton ();
245239 app_button. has_tooltip = true ;
@@ -282,23 +276,15 @@ namespace jorts {
282276 // });
283277
284278 // Use the color theme of this sticky note when focused
285- this.notify["is-active"].connect (() => {
286- this . on_focus_changed();
287- });
279+ this.notify["is-active"].connect (on_focus_changed );
288280
289281 // The application tells us the squiffly state has changed!
290- Application.gsettings.changed["scribbly-mode-active"].connect (() => {
291- this . on_scribbly_changed();
292- });
282+ Application.gsettings.changed["scribbly-mode-active"].connect (on_scribbly_changed );
293283
294284 // The application tells us the squiffly state has changed!
295- Application.gsettings.changed["hide-bar"].connect (() => {
296- this . on_hidebar_changed();
297- });
285+ Application.gsettings.changed["hide-bar"].connect (on_hidebar_changed );
298286
299- gtk_settings.notify["enable-animations"].connect (() => {
300- this . on_reduceanimation_changed();
301- });
287+ gtk_settings.notify["enable-animations"].connect (on_reduceanimation_changed );
302288
303289 } // END OF MAIN CONSTRUCT
304290
0 commit comments