File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -493,7 +493,8 @@ package body Histories is
493
493
Clear_Combo : Boolean := True;
494
494
Prepend : Boolean := False;
495
495
Col : Gint := 0 ;
496
- Filter : access function (Item : String) return Boolean := null )
496
+ Filter : access
497
+ function (Item : VSS.Strings.Virtual_String) return Boolean := null )
497
498
is
498
499
List : constant Gtk_List_Store := -Get_Model (Combo);
499
500
Value : constant VSS.String_Vectors.Virtual_String_Vector :=
@@ -514,9 +515,7 @@ package body Histories is
514
515
-- restore the contents of the entry, but shouldn't appear in the
515
516
-- list.
516
517
if not V.Is_Empty
517
- and then (Filter = null
518
- or else Filter
519
- (VSS.Strings.Conversions.To_UTF_8_String (V)))
518
+ and then (Filter = null or else Filter (V))
520
519
then
521
520
-- Do not add the item directly, in case there was already a
522
521
-- similar entry in the list if it wasn't cleared
Original file line number Diff line number Diff line change 21
21
-- It also provides a way to save the current value for check buttons from one
22
22
-- session of GNAT Studio to the other.
23
23
24
- with GNAT.Strings ;
24
+ private with GNAT.Strings ;
25
25
with GNATCOLL.VFS ;
26
26
27
27
with VSS.String_Vectors ;
28
+ with VSS.Strings ;
28
29
29
30
with Glib ;
30
31
with Gtk.Check_Menu_Item ;
@@ -132,7 +133,8 @@ package Histories is
132
133
Clear_Combo : Boolean := True;
133
134
Prepend : Boolean := False;
134
135
Col : Glib.Gint := 0 ;
135
- Filter : access function (Item : String) return Boolean := null );
136
+ Filter : access
137
+ function (Item : VSS.Strings.Virtual_String) return Boolean := null );
136
138
-- Set the contents of the combo to the list of strings associated with
137
139
-- Key.
138
140
-- If Clear_Combo is False, then the previous contents of the combo is kept
You can’t perform that action at this time.
0 commit comments