The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix memory leak

Changes made to libbirdfont/OverView.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/OverView.vala +++ libbirdfont/OverView.vala @@ -85,7 +85,7 @@ IdleSource idle = new IdleSource (); idle.set_callback (() => { - // FIXME: selected_canvas (); + selected_canvas (); return false; }); @@ -262,6 +262,7 @@ update_scrollbar (); update_zoom_bar (); OverViewItem.glyph_scale = 1; + update_item_list (); selected_item = get_selected_item (); GlyphCanvas.redraw (); } @@ -371,7 +372,7 @@ return i - 1; } - void update_item_list (int item_list_length = -1) { + public void update_item_list (int item_list_length = -1) { string character_string; Font f = BirdFont.get_current_font (); GlyphCollection? glyphs = null; @@ -455,8 +456,6 @@ public override void draw (WidgetAllocation allocation, Context cr) { this.allocation = allocation; - - update_item_list (); // clear canvas cr.save (); @@ -1074,7 +1073,7 @@ index++; } - update_item_list (); + // FIXME: update_item_list (); GlyphCanvas.redraw (); }