[gtk+/gtk-2-90: 127/146] Substitute deprecated stuff from GtkContainer in documentation



commit d40e687dab6986b7a49222ea74269a265b0ca257
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Nov 9 09:20:33 2009 +0100

    Substitute deprecated stuff from GtkContainer in documentation

 docs/faq/gtk-faq.sgml      |    4 ----
 docs/tutorial/gtk_tut.sgml |   14 +++++++-------
 2 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/docs/faq/gtk-faq.sgml b/docs/faq/gtk-faq.sgml
index 508d231..493d61e 100644
--- a/docs/faq/gtk-faq.sgml
+++ b/docs/faq/gtk-faq.sgml
@@ -1629,11 +1629,7 @@ int main(int argc, char *argv[])
   g_signal_connect(G_OBJECT (window), "destroy",
 		     G_CALLBACK(destroy), NULL);
 
-#if (GTK_MAJOR_VERSION == 1) &amp;&amp; (GTK_MINOR_VERSION == 0)
-  gtk_container_border_width(GTK_CONTAINER (window), 10);
-#else  
   gtk_container_set_border_width(GTK_CONTAINER (window), 10);
-#endif
 
   /* add a button to do something useful */
   button = gtk_button_new_with_label("Fork me!");
diff --git a/docs/tutorial/gtk_tut.sgml b/docs/tutorial/gtk_tut.sgml
index 92aa241..e689fc4 100644
--- a/docs/tutorial/gtk_tut.sgml
+++ b/docs/tutorial/gtk_tut.sgml
@@ -6004,7 +6004,7 @@ void create_calendar()
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title(GTK_WINDOW(window), "GtkCalendar Example");
-  gtk_container_border_width (GTK_CONTAINER (window), 5);
+  gtk_container_set_border_width (GTK_CONTAINER (window), 5);
   gtk_signal_connect(GTK_OBJECT(window), "destroy",
 		     GTK_SIGNAL_FUNC(gtk_main_quit),
 		     NULL);
@@ -9264,13 +9264,13 @@ you want to use one of the gtk_widget_*() functions on it).
 
 Instead of directly accessing the children field of a Tree widget,
 it's probably best to cast it using >tt/GTK_CONTAINER (Tree)/, and
-pass it to the gtk_container_children() function. This creates a
+pass it to the gtk_container_get_children() function. This creates a
 duplicate of the original list, so it's advisable to free it up using
 g_list_free() after you're done with it, or to iterate on it
 destructively, like this:
 
 <tscreen><verb>
-    children = gtk_container_children (GTK_CONTAINER (tree));
+    children = gtk_container_get_children (GTK_CONTAINER (tree));
     while (children) {
       do_something_nice (GTK_TREE_ITEM (children->data));
       children = g_list_remove_link (children, children);
@@ -10382,7 +10382,7 @@ int main( int argc,
   gtk_widget_set_usize (GTK_WIDGET(window), 300, 200);
   
   main_vbox = gtk_vbox_new (FALSE, 1);
-  gtk_container_border_width (GTK_CONTAINER (main_vbox), 1);
+  gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 1);
   gtk_container_add (GTK_CONTAINER (window), main_vbox);
   gtk_widget_show (main_vbox);
   
@@ -17321,7 +17321,7 @@ int main( int   argc,
   gtk_signal_connect (GTK_OBJECT (window), "destroy",
 		      GTK_SIGNAL_FUNC (gtk_exit), NULL);
   
-  gtk_container_border_width (GTK_CONTAINER (window), 10);
+  gtk_container_set_border_width (GTK_CONTAINER (window), 10);
 
   vbox = gtk_vbox_new (FALSE, 5);
   gtk_container_add (GTK_CONTAINER (window), vbox);
@@ -18262,9 +18262,9 @@ void sigh_button_event( GtkWidget      *gtklist,
 	/* Look for already imprisoned list items, we
 	 * will put them back into the list.
 	 * Remember to free the doubly linked list that
-	 * gtk_container_children() returns
+	 * gtk_container_get_children() returns
 	 */
-	dlist=gtk_container_children(GTK_CONTAINER(frame));
+	dlist=gtk_container_get_children(GTK_CONTAINER(frame));
 	free_list=dlist;
 	while (dlist) {
 	    GtkWidget       *list_item;



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