Re: Location of bookmark-popup-menu in code files
Selspam via nautilus-list <[email protected]> Wed, 5 May 2021 22:14:37 +0000
| Newsgroups | gmane.comp.gnome.nautilus |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============0176058035973791417== Content-Type: multipart/alternative; boundary="------------FB930E901A055813D20B8D8C" Content-Language: de-DE This is a multi-part message in MIME format. --------------FB930E901A055813D20B8D8C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hello again, thanks for your answer! I see, so it's not going to be as easy as I thought. Thanks for the hint with the xdg-user-dirs. I've already stumbled upon that solution in some forums, but tbh I think this should only be a quick-and-dirty solution. I don't want to de-register the default directories completely (since other applications may need to know them). I just don't want them to take away the precious place in the sidebar. Anyways, thanks again. I think I'll go annoy the people on the gtk-mailinglist ;) Best regards Am 04.05.21 um 22:49 schrieb António Fernandes: > Hi. > > The sidebar is a GTK widget: GtkPlacesSidebar. So, you would need to > patch GTK for that. > > Alternatively, you can modify ~/.config/userdirs.dirs by setting to > $HOME/ the special dirs you don't want. But this may not be what you want. > > A terça, 4/05/2021, 19:34, Selspam via nautilus-list > <[email protected] <mailto:[email protected]>> escreveu: > > Dear all, > > I've been browsing through the code trying to find a way to patch > nautilus in such a way that I can remove the default-bookmarks > (withou > modifying my xdg-files in the home directory). Changing > 'nautilus_bookmark_get_is_builtin' in bookmark.c to return always > False > didn't help, so I wanted to take a look at the popup-menu > directly. Does > anyone know where to find it? > > Thank you and kind regard, > Selspam > > (PS: I was playing around with the 3.30.5 version (Debian...), so if > this feature is already somehow implemented and I just don't know > about > it, sorry.) > > -- > nautilus-list mailing list > [email protected] <mailto:[email protected]> > https://mail.gnome.org/mailman/listinfo/nautilus-list > <https://mail.gnome.org/mailman/listinfo/nautilus-list> > --------------FB930E901A055813D20B8D8C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p>Hello again,</p> <p>thanks for your answer! I see, so it's not going to be as easy as I thought.</p> <p>Thanks for the hint with the xdg-user-dirs. I've already stumbled upon that solution in some forums, but tbh I think this should only be a quick-and-dirty solution. I don't want to de-register the default directories completely (since other applications may need to know them). I just don't want them to take away the precious place in the sidebar. <br> </p> <p>Anyways, thanks again. I think I'll go annoy the people on the gtk-mailinglist ;)</p> <p>Best regards<br> </p> <p><br> </p> <div class="moz-cite-prefix">Am 04.05.21 um 22:49 schrieb António Fernandes:<br> </div> <blockquote type="cite" cite="mid:CAJa6SmcaAEw4=mYOrHGNvgqO=Q94YU5NfeYf3aeRejoyv8NMsA@mail.gmail.com"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">Hi.</span> <div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br> </div> <div dir="auto" style="font-family:sans-serif;font-size:12.8px">The sidebar is a GTK widget: GtkPlacesSidebar. So, you would need to patch GTK for that.</div> <div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br> </div> <div dir="auto" style="font-family:sans-serif;font-size:12.8px">Alternatively, you can modify ~/.config/userdirs.dirs by setting to $HOME/ the special dirs you don't want. But this may not be what you want.</div> </div> <br> <div class="gmail_quote"> <div dir="ltr" class="gmail_attr">A terça, 4/05/2021, 19:34, Selspam via nautilus-list <<a href="mailto:[email protected]" moz-do-not-send="true">[email protected]</a>> escreveu:<br> </div> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br> <br> I've been browsing through the code trying to find a way to patch <br> nautilus in such a way that I can remove the default-bookmarks (withou <br> modifying my xdg-files in the home directory). Changing <br> 'nautilus_bookmark_get_is_builtin' in bookmark.c to return always False <br> didn't help, so I wanted to take a look at the popup-menu directly. Does <br> anyone know where to find it?<br> <br> Thank you and kind regard,<br> Selspam<br> <br> (PS: I was playing around with the 3.30.5 version (Debian...), so if <br> this feature is already somehow implemented and I just don't know about <br> it, sorry.)<br> <br> -- <br> nautilus-list mailing list<br> <a href="mailto:[email protected]" target="_blank" rel="noreferrer" moz-do-not-send="true">[email protected]</a><br> <a href="https://mail.gnome.org/mailman/listinfo/nautilus-list" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true">https://mail.gnome.org/mailman/listinfo/nautilus-list</a><br> </blockquote> </div> </blockquote> </body> </html> --------------FB930E901A055813D20B8D8C-- --===============0176058035973791417== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- nautilus-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/nautilus-list --===============0176058035973791417==--