From 0a5e8ce685ea2c41bf78bd059d2611f2355dceef Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 19 Jan 2011 12:55:48 -0500 Subject: [PATCH] Mention type vs region ambiguity in the docs --- gtk/gtkcssprovider.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index ea4530e9b4..32d637efd5 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -157,6 +157,12 @@ * style classes they define and see * for a list of all style classes used by GTK+ widgets. * + * + * Note that there is some ambiguity in the selector syntax when it comes + * to differentiation widget class names from regions. GTK+ currently treats + * a string as a widget class name if it contains any uppercase characters + * (which should work for more widgets with names like GtkLabel). + * * * Style classes in selectors * @@ -1718,7 +1724,8 @@ is_widget_class_name (const gchar *str) * widget class names contain only CamelCase * (gtkmm widgets don't), but at least part of * the name will be CamelCase, so check for - * the first uppercase char */ + * the first uppercase char + */ while (*str) { if (g_ascii_isupper (*str))