<p>Would it be an acceptable fix to perform the checking for windows in the ui_utils.c file and adding a new style for windows in the gtkrc.</p>
<p>I have modified ui_utils.c which defines  ui_set_search_entry_background at line 1100 to check for OS:</p>
<p>#ifdef G_OS_WIN32<br>
gtk_widget_set_name(widget, success ? NULL : "win-geany-search-entry-no-match");<br>
#else<br>
gtk_widget_set_name(widget, success ? NULL : "geany-search-entry-no-match");<br>
#endif</p>
<p>and then made the corresponding changes to the gtkrc file:</p>
<h1>set windows search to prevent</h1>
<p>widget "GeanyDialogSearch.*.win-geany-search-entry-no-match" style "geany-monospace"</p>
<h1>set red background for GtkEntries on windows showing unmatched searches</h1>
<p>style "win-geany-search-entry-no-match-style" {<br>
base[NORMAL] = "#ffff66666666"<br>
text[NORMAL] = "#ffffffffffff"<br>
}<br>
widget "*.win-geany-search-entry-no-match" style "win-geany-search-entry-no-match-style"</p>
<p>This seems to preserve the Adwaita workaround while fixing the issue on windows.</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/issues/1384#issuecomment-279443705">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ9K06nW5b5OxiGYt6tJGu92DeiXlks5rcIUJgaJpZM4LzVB3">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ4b3II-rRkquwLIcncmQzlYA5oJKks5rcIUJgaJpZM4LzVB3.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1384#issuecomment-279443705"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@dwledwards in #1384: Would it be an acceptable fix to perform the checking for windows in the ui_utils.c file and adding a new style for windows in the gtkrc. \r\n\r\nI have modified ui_utils.c which defines  ui_set_search_entry_background at line 1100 to check for OS:\r\n\r\n#ifdef G_OS_WIN32\r\n        gtk_widget_set_name(widget, success ? NULL : \"win-geany-search-entry-no-match\");\r\n    #else\r\n       gtk_widget_set_name(widget, success ? NULL : \"geany-search-entry-no-match\");\r\n    #endif\r\n\r\nand then made the corresponding changes to the gtkrc file:\r\n\r\n# set windows search to prevent \r\nwidget \"GeanyDialogSearch.*.win-geany-search-entry-no-match\" style \"geany-monospace\"\r\n\r\n# set red background for GtkEntries on windows showing unmatched searches\r\nstyle \"win-geany-search-entry-no-match-style\" {\r\n\tbase[NORMAL] = \"#ffff66666666\"\r\n\ttext[NORMAL] = \"#ffffffffffff\"\r\n}\r\nwidget \"*.win-geany-search-entry-no-match\" style \"win-geany-search-entry-no-match-style\"\r\n\r\nThis seems to preserve the Adwaita workaround while fixing the issue on windows."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1384#issuecomment-279443705"}}}</script>