[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FileChooser private bookmarks doesn't seem to work


I use this code...

' Gambas class file

Public Sub Form_Open()

  Dim cc As New Collection[]

  If Exist("~/.config/gtk-3.0/bookmarks") Then
    For Each sLine As String In
Split(File.Load("~/.config/gtk-3.0/bookmarks"), "\n", Null, True)
      Dim aVar As String[] = Split(sLine, " ", Null, True)
      aVar.Insert(["", "", ""])
      Dim c As New Collection
      c["Path"] = Replace(FromUrl(aVar[0]), "file://", "")
      If aVar[1] <> "" Then c["Name"] = aVar[1]
      If aVar[2] <> "" Then c["Icon"] = aVar[2]
      cc.Add(c)
    Next

  Endif

  FileChooser1.Bookmarks = cc

End

In the attached picture you can see the FileChooser.Bookmarks list is
filled but they do not show.

The only way i can get any kind of bookmarks to show is by adding
gb.settings for the user ones.

Is it a bug or am i missing something?

Respects

Attachment: Untitled.jpg
Description: JPEG image


Follow-Ups:
Re: FileChooser private bookmarks doesn't seem to workT Lee Davidson <t.lee.davidson@xxxxxxxxx>