Re: Location of bookmark-popup-menu in code files

António Fernandes via nautilus-list <[email protected]> Thu, 6 May 2021 11:51:55 +0100
Newsgroups gmane.comp.gnome.nautilus
Message-ID <CAJa6Smfox8XYy7As8AoeVjNhscpqnS_iH=hamK155N3RaHjbjg@mail.gmail.com>
--===============3205339418393002320==
Content-Type: multipart/alternative; boundary="0000000000003b311205c1a71aa9"

--0000000000003b311205c1a71aa9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

If you just want to make cosmetic change, you may be able to do something
with CSS.

A quarta, 5/05/2021, 23:14, Selspam <[email protected]> escreveu:

> 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=C3=B3nio Fernandes:
>
> Hi.
>
> The sidebar is a GTK widget: GtkPlacesSidebar. So, you would need to patc=
h
> 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=C3=A7a, 4/05/2021, 19:34, Selspam via nautilus-list <
> [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]
>> https://mail.gnome.org/mailman/listinfo/nautilus-list
>>
>

--0000000000003b311205c1a71aa9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">If you just want to make cosmetic change, you may be able=
 to do something with CSS.</div><br><div class=3D"gmail_quote"><div dir=3D"=
ltr" class=3D"gmail_attr">A quarta, 5/05/2021, 23:14, Selspam &lt;<a href=
=3D"mailto:[email protected]">[email protected]</a>&gt; escreveu:<br></div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div>
    <p>Hello again,</p>
    <p>thanks for your answer! I see, so it&#39;s not going to be as easy a=
s
      I thought.</p>
    <p>Thanks for the hint with the xdg-user-dirs. I&#39;ve already stumble=
d
      upon that solution in some forums, but tbh I think this should
      only be a quick-and-dirty solution. I don&#39;t want to de-register
      the default directories completely (since other applications may
      need to know them). I just don&#39;t want them to take away the
      precious place in the sidebar. <br>
    </p>
    <p>Anyways, thanks again. I think I&#39;ll go annoy the people on the
      gtk-mailinglist ;)</p>
    <p>Best regards<br>
    </p>
    <p><br>
    </p>
    <div>Am 04.05.21 um 22:49 schrieb Ant=C3=B3nio
      Fernandes:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <div dir=3D"auto"><span style=3D"font-family:sans-serif;font-size:12.=
8px">Hi.</span>
        <div dir=3D"auto" style=3D"font-family:sans-serif;font-size:12.8px"=
><br>
        </div>
        <div dir=3D"auto" style=3D"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=3D"auto" style=3D"font-family:sans-serif;font-size:12.8px"=
><br>
        </div>
        <div dir=3D"auto" style=3D"font-family:sans-serif;font-size:12.8px"=
>Alternatively,
          you can modify ~/.config/userdirs.dirs by setting to $HOME/
          the special dirs you don&#39;t want. But this may not be what you
          want.</div>
      </div>
      <br>
      <div class=3D"gmail_quote">
        <div dir=3D"ltr" class=3D"gmail_attr">A ter=C3=A7a, 4/05/2021, 19:3=
4,
          Selspam via nautilus-list &lt;<a href=3D"mailto:nautilus-list@gno=
me.org" target=3D"_blank" rel=3D"noreferrer">[email protected]</a>&gt=
;
          escreveu:<br>
        </div>
        <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
          <br>
          I&#39;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>
          &#39;nautilus_bookmark_get_is_builtin&#39; in bookmark.c to retur=
n
          always False <br>
          didn&#39;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&#39;t
          know about <br>
          it, sorry.)<br>
          <br>
          -- <br>
          nautilus-list mailing list<br>
          <a href=3D"mailto:[email protected]" rel=3D"noreferrer nore=
ferrer" target=3D"_blank">[email protected]</a><br>
          <a href=3D"https://mail.gnome.org/mailman/listinfo/nautilus-list"=
 rel=3D"noreferrer noreferrer noreferrer" target=3D"_blank">https://mail.gn=
ome.org/mailman/listinfo/nautilus-list</a><br>
        </blockquote>
      </div>
    </blockquote>
  </div>

</blockquote></div>

--0000000000003b311205c1a71aa9--

--===============3205339418393002320==
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

--===============3205339418393002320==--