<p>Allows selecting individual widgets in Gtk CSS using <code>#name</code> selector.</p>
<p>For example the snippet <a href="https://github.com/geany/geany/issues/2468#issuecomment-610695277" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2468/hovercard">from my comment</a> on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="596082580" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/2468" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2468/hovercard" href="https://github.com/geany/geany/issues/2468">#2468</a> could be made to apply to just the document notebook like:</p>
<div class="highlight highlight-source-css"><pre>notebook<span class="pl-e">#notebook1</span> <span class="pl-k">></span> <span class="pl-ent">header</span><span class="pl-e">.top</span> <span class="pl-k">></span> tabs <span class="pl-k">></span> tab {
        <span class="pl-c1"><span class="pl-c1">padding</span></span>: <span class="pl-c1">0<span class="pl-k">px</span></span> <span class="pl-c1">12<span class="pl-k">px</span></span> <span class="pl-c1">0<span class="pl-k">px</span></span> <span class="pl-c1">12<span class="pl-k">px</span></span>;
}</pre></div>
<p>Tested with Gtk Inspector.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2469'>https://github.com/geany/geany/pull/2469</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Set a default widget name on all GtkBuilder widgets.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2469/files#diff-4bbd8d1b91370dfb89a7e350b9828785">src/ui_utils.c</a>
    (5)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2469.patch'>https://github.com/geany/geany/pull/2469.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2469.diff'>https://github.com/geany/geany/pull/2469.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2469">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2CXQ7YBKGKFMW32Z3RLPGSVANCNFSM4MDRUNYQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3SI22KOMI24RAT26DRLPGSVA5CNFSM4MDRUNY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4I4J7GYA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2469",
"url": "https://github.com/geany/geany/pull/2469",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>