<p>This fixes a deprecation warning in the autoclose plugin for gtk3. No functional changes.</p>
<p>A little side note:<br>
I first thought I could use <code>gtk_container_add()</code> on gtk 2 and 3 because of this deprecation notice in the gtk documentation:</p>
<blockquote>
<p>gtk_scrolled_window_add_with_viewport has been deprecated since version 3.8 and should not be used in newly-written code.<br>
gtk_container_add() will automatically add a GtkViewport if the child doesn’t implement GtkScrollable.</p>
</blockquote>
<p>But the function only works that way under gtk3. A test with gtk2 revealed that the function does not work that way with the result that in this case the scroll bar was missing in the autoclose configuration dialog.</p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>autoclose: fixed deprecated gtk call for gtk3</li>
</ul>

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

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/857.patch'>https://github.com/geany/geany-plugins/pull/857.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/857.diff'>https://github.com/geany/geany-plugins/pull/857.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-plugins/pull/857">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7JCGF7T3IJR4756DTPVBGSBANCNFSM4HMK2ORQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJZZXC62TRXJ6PKGXV3PVBGSBA5CNFSM4HMK2OR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GTJSSEQ.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-plugins/pull/857",
"url": "https://github.com/geany/geany-plugins/pull/857",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>