gtk+ r21349 - in trunk: . gtk



Author: cosimoc
Date: Thu Sep 11 19:31:04 2008
New Revision: 21349
URL: http://svn.gnome.org/viewvc/gtk+?rev=21349&view=rev

Log:
2008-09-11  Cosimo Cecchi  <cosimoc gnome org>

	Bug 536542 â gtk_list_store_set() documentation doesn't say whether
	values are copied.

	* gtk/gtkliststore.c:
	* gtk/gtktreestore.c:
	Explicitly mention in the docs that gtk_[list,tree]_store_set copies
	or keep	a reference of the values.


Modified:
   trunk/ChangeLog
   trunk/gtk/gtkliststore.c
   trunk/gtk/gtktreestore.c

Modified: trunk/gtk/gtkliststore.c
==============================================================================
--- trunk/gtk/gtkliststore.c	(original)
+++ trunk/gtk/gtkliststore.c	Thu Sep 11 19:31:04 2008
@@ -922,6 +922,7 @@
  * The list is terminated by a -1. For example, to set column 0 with type
  * %G_TYPE_STRING to "Foo", you would write <literal>gtk_list_store_set (store, iter,
  * 0, "Foo", -1)</literal>.
+ * The value will be copied or referenced by the store if appropriate.
  **/
 void
 gtk_list_store_set (GtkListStore *list_store,

Modified: trunk/gtk/gtktreestore.c
==============================================================================
--- trunk/gtk/gtktreestore.c	(original)
+++ trunk/gtk/gtktreestore.c	Thu Sep 11 19:31:04 2008
@@ -1070,6 +1070,7 @@
  * The list is terminated by a -1. For example, to set column 0 with type
  * %G_TYPE_STRING to "Foo", you would write 
  * <literal>gtk_tree_store_set (store, iter, 0, "Foo", -1)</literal>.
+ * The value will be copied or referenced by the store if appropriate.
  **/
 void
 gtk_tree_store_set (GtkTreeStore *tree_store,



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