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. --- ChangeLog | 6 ++++++ lib/widgets/ephy-location-entry.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4e1145196..a8d9e61c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-08-07 Christian Persch + + * lib/widgets/ephy-location-entry.c: + + Improve the a11y theme check. + 2006-08-07 Christian Persch * lib/Makefile.am: 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