gtk_text_buffer_create_tag 创建警告:'GtkTextTag' 没有名为“\u0004”的 属性
gtk_text_buffer_create_tag creates warning: 'GtkTextTag' has no property named '\u0004'
当我打电话时
gtk_text_buffer_create_tag(buffer, "small_distance", "foreground", "green");
在我的程序中,它在运行时发出警告:
g_object_set_is_valid_property: 对象 class 'GtkTextTag' 没有 属性 名为 '\u0004'
您必须 "NULL-terminate" 参数列表:
gtk_text_buffer_create_tag(buffer, "small_distance",
"foreground", "green",
NULL);
注意 NULL 为 "last parameter"。
有关此主题的更多信息:
参数列表被视为 g_object_set()
。它指出
value for the first property, followed optionally by more name/value pairs, followed by NULL
当我打电话时
gtk_text_buffer_create_tag(buffer, "small_distance", "foreground", "green");
在我的程序中,它在运行时发出警告: g_object_set_is_valid_property: 对象 class 'GtkTextTag' 没有 属性 名为 '\u0004'
您必须 "NULL-terminate" 参数列表:
gtk_text_buffer_create_tag(buffer, "small_distance",
"foreground", "green",
NULL);
注意 NULL 为 "last parameter"。
有关此主题的更多信息:
参数列表被视为 g_object_set()
。它指出
value for the first property, followed optionally by more name/value pairs, followed by NULL