<p>The existing popup menu lists all the notebook tabs first then shows command items below. This means the command items are harder to access (user has to move mouse further). They can also get pushed off screen when there are many tabs open (see <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="504125940" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2346" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/2346/hovercard?comment_id=539842133&comment_type=issue_comment" href="https://github.com/geany/geany/pull/2346#issuecomment-539842133">#2346 (comment)</a>). Instead, let's split up the menu for better UX.</p>
<p>New notebook action widget menu, left or right click ☰ button:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1107820/66484161-63b43e80-ea9e-11e9-9d58-b6efef850baf.png"><img src="https://user-images.githubusercontent.com/1107820/66484161-63b43e80-ea9e-11e9-9d58-b6efef850baf.png" alt="image" style="max-width:100%;"></a></p>
<p>Commands-only tab menu:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1107820/66500598-b6e7ba80-eab9-11e9-8908-3fb43bed2bdb.png"><img src="https://user-images.githubusercontent.com/1107820/66500598-b6e7ba80-eab9-11e9-8908-3fb43bed2bdb.png" alt="image" style="max-width:100%;"></a></p>
<p>The single close item has been grouped separately and put first because:</p>
<blockquote>
<p>This will be the most common choice for anyone who disables notebook tabs.<br>
This also groups the commands closing multiple documents separately from the other commands. Closing multiple documents is a more drastic action so should be grouped separately.</p>
</blockquote>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>Use gtk_widget_show_all in show_tab_bar_popup_menu</li>
  <li>Remove unnecessary casts</li>
  <li>Notebook tab menu: Move tab filenames to button menu at end of tabs</li>
  <li>Move single close item to top of menu</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2348/files#diff-0">src/notebook.c</a>
    (56)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2348.patch'>https://github.com/geany/geany/pull/2348.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2348.diff'>https://github.com/geany/geany/pull/2348.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/2348?email_source=notifications&email_token=AAIOWJZIJK3DDXC5TIH75KLQNYBPBA5CNFSM4I7B3WG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQWBZAA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7Y6GJG3VOIRH4JS3LQNYBPBANCNFSM4I7B3WGQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ5IAWZHTP2H74ETLYDQNYBPBA5CNFSM4I7B3WG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQWBZAA.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/2348?email_source=notifications\u0026email_token=AAIOWJZIJK3DDXC5TIH75KLQNYBPBA5CNFSM4I7B3WG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQWBZAA",
"url": "https://github.com/geany/geany/pull/2348?email_source=notifications\u0026email_token=AAIOWJZIJK3DDXC5TIH75KLQNYBPBA5CNFSM4I7B3WG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQWBZAA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>