[gtk+/gtk-2-90: 125/161] Remove all deprecated stuff from GtkContainer



commit 6a49ababa4414d5f8a1b06b881e83f0e24d05e4b
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Nov 9 09:04:57 2009 +0100

    Remove all deprecated stuff from GtkContainer

 docs/reference/gtk/gtk-sections.txt       |    2 -
 docs/reference/gtk/tmpl/gtkcontainer.sgml |   16 ---------------
 examples/list/list.c                      |    4 +-
 gtk/gtkcontainer.c                        |   30 -----------------------------
 gtk/gtkcontainer.h                        |   14 -------------
 5 files changed, 2 insertions(+), 64 deletions(-)
---
diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt
index c3262b2..2496c9f 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -984,7 +984,6 @@ gtk_combo_box_entry_get_type
 GtkContainer
 GTK_IS_RESIZE_CONTAINER
 GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID
-gtk_container_border_width
 gtk_container_add
 gtk_container_remove
 gtk_container_add_with_properties
@@ -992,7 +991,6 @@ gtk_container_get_resize_mode
 gtk_container_set_resize_mode
 gtk_container_check_resize
 gtk_container_foreach
-gtk_container_children
 gtk_container_get_children
 gtk_container_set_reallocate_redraws
 gtk_container_get_focus_child
diff --git a/docs/reference/gtk/tmpl/gtkcontainer.sgml b/docs/reference/gtk/tmpl/gtkcontainer.sgml
index bd912f5..612f93f 100644
--- a/docs/reference/gtk/tmpl/gtkcontainer.sgml
+++ b/docs/reference/gtk/tmpl/gtkcontainer.sgml
@@ -212,14 +212,6 @@ properties in set_child_property() and get_child_property() implementations.
 @pspec: the #GParamSpec of the property
 
 
-<!-- ##### MACRO gtk_container_border_width ##### -->
-<para>
-Does the same as gtk_container_set_border_width().
-</para>
-
- Deprecated: Use gtk_container_set_border_width() instead.
-
-
 <!-- ##### FUNCTION gtk_container_add ##### -->
 <para>
 
@@ -285,14 +277,6 @@ Does the same as gtk_container_set_border_width().
 @callback_data: 
 
 
-<!-- ##### MACRO gtk_container_children ##### -->
-<para>
-Does the same as gtk_container_get_children().
-</para>
-
- Deprecated: Use gtk_container_get_children() instead.
-
-
 <!-- ##### FUNCTION gtk_container_get_children ##### -->
 <para>
 
diff --git a/examples/list/list.c b/examples/list/list.c
index 8d0d97b..c5aa213 100644
--- a/examples/list/list.c
+++ b/examples/list/list.c
@@ -193,9 +193,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;
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 6bedc86..f2634dd 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -1554,36 +1554,6 @@ gtk_container_foreach_unmarshal (GtkWidget *child,
   fdata->callback (fdata->container, fdata->callback_data, 1, args);
 }
 
-void
-gtk_container_foreach_full (GtkContainer       *container,
-			    GtkCallback         callback,
-			    GtkCallbackMarshal  marshal,
-			    gpointer            callback_data,
-			    GDestroyNotify      notify)
-{
-  g_return_if_fail (GTK_IS_CONTAINER (container));
-
-  if (marshal)
-    {
-      GtkForeachData fdata;
-  
-      fdata.container     = GTK_OBJECT (container);
-      fdata.callback      = marshal;
-      fdata.callback_data = callback_data;
-
-      gtk_container_foreach (container, gtk_container_foreach_unmarshal, &fdata);
-    }
-  else
-    {
-      g_return_if_fail (callback != NULL);
-
-      gtk_container_foreach (container, callback, &callback_data);
-    }
-
-  if (notify)
-    notify (callback_data);
-}
-
 /**
  * gtk_container_set_focus_child:
  * @container: a #GtkContainer
diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h
index 1357b7c..a1c3a52 100644
--- a/gtk/gtkcontainer.h
+++ b/gtk/gtkcontainer.h
@@ -122,19 +122,8 @@ void    gtk_container_check_resize       (GtkContainer     *container);
 void     gtk_container_foreach      (GtkContainer       *container,
 				     GtkCallback         callback,
 				     gpointer            callback_data);
-#ifndef GTK_DISABLE_DEPRECATED
-void     gtk_container_foreach_full (GtkContainer       *container,
-				     GtkCallback         callback,
-				     GtkCallbackMarshal  marshal,
-				     gpointer            callback_data,
-				     GDestroyNotify      notify);
-#endif /*  GTK_DISABLE_DEPRECATED */
 GList*   gtk_container_get_children     (GtkContainer       *container);
 
-#ifndef GTK_DISABLE_DEPRECATED
-#define gtk_container_children gtk_container_get_children
-#endif
-
 void     gtk_container_propagate_expose (GtkContainer   *container,
 					 GtkWidget      *child,
 					 GdkEventExpose *event);
@@ -220,9 +209,6 @@ GList *_gtk_container_focus_sort             (GtkContainer     *container,
 					      GtkDirectionType  direction,
 					      GtkWidget        *old_focus);
 
-#ifndef GTK_DISABLE_DEPRECATED
-#define	gtk_container_border_width		gtk_container_set_border_width
-#endif /* GTK_DISABLE_DEPRECATED */
 
 G_END_DECLS
 



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