diff options
Diffstat (limited to 'lib/widgets/ephy-location-entry.c')
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 329c5310a..939267839 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -189,8 +189,8 @@ ephy_location_entry_style_set (GtkWidget *widget, settings = gtk_settings_get_for_screen (gtk_widget_get_screen (widget)); g_object_get (settings, "gtk-theme-name", &theme, NULL); - is_a11y_theme = strncmp (theme, "HighContrast", strlen ("HighContrast")) == 0 || - strncmp (theme, "LowContrast", strlen ("LowContrast")) == 0; + is_a11y_theme = strstr (theme, "HighContrast") != NULL || + strstr (theme, "LowContrast") != NULL; g_free (theme); gtk_widget_style_get (widget, |