aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-08-08 04:32:04 +0800
committerChristian Persch <chpe@src.gnome.org>2006-08-08 04:32:04 +0800
commit10473d884a92802eeedb5e328d89efaadf731a7b (patch)
treec0a777959f37b486d032f32302be603a1e0e2bce /lib
parent1b1f99da1314e9f00d6ba5a6814b412b61a4d90e (diff)
downloadgsoc2013-epiphany-10473d884a92802eeedb5e328d89efaadf731a7b.tar.gz
gsoc2013-epiphany-10473d884a92802eeedb5e328d89efaadf731a7b.tar.zst
gsoc2013-epiphany-10473d884a92802eeedb5e328d89efaadf731a7b.zip
Improve the a11y theme check.
2006-08-07 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-location-entry.c: Improve the a11y theme check.
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-location-entry.c4
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,