<p><b>@elextr</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2220#discussion_r308024072">src/ui_utils.c</a>:</p>
<pre style='color:#555'>> +    vbox = gtk_widget_get_ancestor(page, GTK_TYPE_VBOX);
+       GList *vbox_children = gtk_container_get_children(GTK_CONTAINER(vbox));
+       GtkWidget *sbox;
+       if (interface_prefs.search_bar_position == SEARCH_BAR_POSITION_TOP)
+       {
+               sbox = (GtkWidget*)vbox_children->data;
+       }
+       else
+       {
+               sbox = (GtkWidget*)((GList*)g_list_last(vbox_children))->data;
+       }
+       g_list_free(vbox_children);
+       return sbox;
+}
+
+void ui_emit_entry_what_to_search_in_search_bar_changed_if_visible(GeanyDocument *doc)
</pre>
<p>And now make it sensible.</p>

<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/2220?email_source=notifications&email_token=AAIOWJ26AOPPDIUQMSTCAULQBYU4DA5CNFSM4IEKN7D2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7ZCSPI#discussion_r308024072">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYL6LWTUJWPR2C55MLQBYU4DANCNFSM4IEKN7DQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4DYKUR5B2D4SNDA4LQBYU4DA5CNFSM4IEKN7D2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7ZCSPI.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/2220?email_source=notifications\u0026email_token=AAIOWJ26AOPPDIUQMSTCAULQBYU4DA5CNFSM4IEKN7D2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7ZCSPI#discussion_r308024072",
"url": "https://github.com/geany/geany/pull/2220?email_source=notifications\u0026email_token=AAIOWJ26AOPPDIUQMSTCAULQBYU4DA5CNFSM4IEKN7D2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7ZCSPI#discussion_r308024072",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>