diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2006-08-07 Christian Persch <chpe@cvs.gnome.org> + * lib/widgets/ephy-location-entry.c: + + Improve the a11y theme check. + +2006-08-07 Christian Persch <chpe@cvs.gnome.org> + * lib/Makefile.am: Use variables here, not configure substitutions. 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, |