Method

Gtk.StringList.take

Declaration [src]

void
gtk_string_list_take (
  GtkStringList* self,
  char* string
)

Description [src]

Adds string to self at the end, and takes ownership of it.

This variant of gtk_string_list_append() is convenient for formatting strings:

gtk_string_list_take (self, g_strdup_print ("%d dollars", lots));

Parameters

string char*
 

the string to insert

 Ownership of the data is transferred to the callee
 The string is a NUL terminated UTF-8 string