diff --git a/docs/sec29.html b/docs/sec29.html index 6a46a56..088f533 100644 --- a/docs/sec29.html +++ b/docs/sec29.html @@ -153,7 +153,7 @@ list. Because GListModel is a list of GObject objects and strings aren’t GObject objects. The word “GObject” here means “GObject class or its descendant class”. So, you need a wrapper which is a GObject and contains a string. GtkStringObject is the wrapper object and -GStringList, implements GListModel, is a list of GtkStringObject.

+GtkStringList, implements GListModel, is a list of GtkStringObject.

char *array[] = {"one", "two", "three", "four", NULL};
 GtkStringList *stringlist = gtk_string_list_new ((const char * const *) array);

The function gtk_string_list_new creates a GtkStringList diff --git a/gfm/sec29.md b/gfm/sec29.md index f1d7e9e..7951b1e 100644 --- a/gfm/sec29.md +++ b/gfm/sec29.md @@ -40,7 +40,7 @@ If you want to make a list of strings with GListModel, for example, "one", "two" Because GListModel is a list of GObject objects and strings aren't GObject objects. The word "GObject" here means "GObject class or its descendant class". So, you need a wrapper which is a GObject and contains a string. -GtkStringObject is the wrapper object and GStringList, implements GListModel, is a list of GtkStringObject. +GtkStringObject is the wrapper object and GtkStringList, implements GListModel, is a list of GtkStringObject. ~~~C char *array[] = {"one", "two", "three", "four", NULL}; diff --git a/src/sec29.src.md b/src/sec29.src.md index f6f231e..4bda76f 100644 --- a/src/sec29.src.md +++ b/src/sec29.src.md @@ -38,7 +38,7 @@ If you want to make a list of strings with GListModel, for example, "one", "two" Because GListModel is a list of GObject objects and strings aren't GObject objects. The word "GObject" here means "GObject class or its descendant class". So, you need a wrapper which is a GObject and contains a string. -GtkStringObject is the wrapper object and GStringList, implements GListModel, is a list of GtkStringObject. +GtkStringObject is the wrapper object and GtkStringList, implements GListModel, is a list of GtkStringObject. @@@if gfm ~~~C