[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FileChooser private bookmarks doesn't seem to work
[Thread Prev] | [Thread Next]
- Subject: Re: FileChooser private bookmarks doesn't seem to work
- From: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
- Date: Thu, 3 Oct 2024 10:38:10 -0400
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 10/1/24 23:45, Bruce Steers wrote:
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
I assume you are using GTK and that you mean the bookmark menu does not show as a MenuButton in the drop-down as documented at: https://gambaswiki.org/wiki/comp/gb.form/filechooser/bookmarks I used the code on that page and, with Qt5, get the same behavior as you. The Bookmarks menu item does not show. BTW, bookmarks-menu.png linked on that page is: not found. -- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
Re: FileChooser private bookmarks doesn't seem to work | Bruce Steers <bsteers4@xxxxxxxxx> |
FileChooser private bookmarks doesn't seem to work | Bruce Steers <bsteers4@xxxxxxxxx> |