*_type_register_static() and g_intern_static_string()



Why do the *_type_register_static() functions use
g_intern_static_string() for the type name?

Should apps be using g_intern_static_string() as well? If so, the docs
should mention it.

There is some inconsistency as well. Some calls don't seem to use it:
"GtkPaperSize" "GtkTextIter" "GtkRecentInfo" "GtkIconSource"
"GtkWidget" "GtkIconViewAccessible" "GtkIconViewAccessibleFactory"
"GtkAssistantAccessible" "GtkAssistantAccessibleFactory"

Damon





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]