From 10473d884a92802eeedb5e328d89efaadf731a7b Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 7 Aug 2006 20:32:04 +0000 Subject: Improve the a11y theme check. 2006-08-07 Christian Persch * lib/widgets/ephy-location-entry.c: Improve the a11y theme check. --- lib/widgets/ephy-location-entry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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, -- cgit v1.2.3