[gtk+/gtk-2-90: 79/146] Remove deprecated code: GtkPaned



commit 8b9f236516203f71b787241a5e049ca6797dc93a
Author: Javier Jardón <javierjc1982 gmail com>
Date:   Fri Oct 9 19:39:00 2009 +0200

    Remove deprecated code: GtkPaned

 docs/reference/gtk/gtk-sections.txt     |    3 ---
 docs/reference/gtk/tmpl/gtk-unused.sgml |   10 ----------
 docs/reference/gtk/tmpl/gtkpaned.sgml   |   19 -------------------
 docs/tutorial/gtk_tut.sgml              |   12 +++---------
 gtk/gtk.symbols                         |    3 ---
 gtk/gtkpaned.c                          |   11 -----------
 gtk/gtkpaned.h                          |    9 ---------
 7 files changed, 3 insertions(+), 64 deletions(-)
---
diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt
index 03839eb..6b30871 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -2821,12 +2821,10 @@ gtk_option_menu_get_type
 GtkPaned
 gtk_paned_add1
 gtk_paned_add2
-gtk_paned_gutter_size
 gtk_paned_pack1
 gtk_paned_pack2
 gtk_paned_get_child1
 gtk_paned_get_child2
-gtk_paned_set_gutter_size
 gtk_paned_set_position
 gtk_paned_get_position
 <SUBSECTION Standard>
@@ -2839,7 +2837,6 @@ GTK_PANED_GET_CLASS
 
 <SUBSECTION Private>
 gtk_paned_get_type
-gtk_paned_compute_position
 </SECTION>
 
 <SECTION>
diff --git a/docs/reference/gtk/tmpl/gtk-unused.sgml b/docs/reference/gtk/tmpl/gtk-unused.sgml
index 4a7c4e2..cc4ef58 100644
--- a/docs/reference/gtk/tmpl/gtk-unused.sgml
+++ b/docs/reference/gtk/tmpl/gtk-unused.sgml
@@ -3117,16 +3117,6 @@ the names, types, and values of the arguments).
 @packer: 
 @spacing: 
 
-<!-- ##### FUNCTION gtk_paned_compute_position ##### -->
-<para>
-Internal function used by #GtkHPaned and #GtkVPaned
-</para>
-
- paned: 
- allocation: 
- child1_req: 
- child2_req: 
-
 <!-- ##### MACRO gtk_paned_handle_size ##### -->
 <para>
 Old name for gtk_paned_set_handle_size().
diff --git a/docs/reference/gtk/tmpl/gtkpaned.sgml b/docs/reference/gtk/tmpl/gtkpaned.sgml
index c7976a2..8ccef04 100644
--- a/docs/reference/gtk/tmpl/gtkpaned.sgml
+++ b/docs/reference/gtk/tmpl/gtkpaned.sgml
@@ -191,15 +191,6 @@ parameters. This is equivalent to
 @child: the child to add
 
 
-<!-- ##### MACRO gtk_paned_gutter_size ##### -->
-<para>
-Old name for gtk_paned_set_gutter_size().
-</para>
-
- p: a paned widget
- s: the width of the gutter in pixels
-
-
 <!-- ##### FUNCTION gtk_paned_pack1 ##### -->
 <para>
 Adds a child to the top or left pane.
@@ -240,16 +231,6 @@ Adds a child to the bottom or right pane.
 @Returns: 
 
 
-<!-- ##### MACRO gtk_paned_set_gutter_size ##### -->
-<para>
-In older versions of GTK+, this function used to set the width of the 
-gutter (the area between the two panes). It does nothing now.
-</para>
-
- p: a paned widget
- s: the width of the gutter in pixels
-
-
 <!-- ##### FUNCTION gtk_paned_set_position ##### -->
 <para>
 
diff --git a/docs/tutorial/gtk_tut.sgml b/docs/tutorial/gtk_tut.sgml
index d42a349..f1ac12e 100644
--- a/docs/tutorial/gtk_tut.sgml
+++ b/docs/tutorial/gtk_tut.sgml
@@ -7064,19 +7064,15 @@ void gtk_paned_add2 (GtkPaned *paned, GtkWidget *child);
 the paned window. <tt/gtk_paned_add2()/ adds the child widget to the
 right or bottom half of the paned window.
 
-A paned widget can be changed visually using the following two
-functions.
+A paned widget can be changed visually using the following
+function.
 
 <tscreen><verb>
 void gtk_paned_set_handle_size( GtkPaned *paned,
                                 guint16   size);
-
-void gtk_paned_set_gutter_size( GtkPaned *paned,
-                                guint16   size);
 </verb></tscreen>
 
-The first of these sets the size of the handle and the second sets the
-size of the gutter that is between the two parts of the paned window.
+This function sets the size of the handle.
 
 As an example, we will create part of the user interface of an
 imaginary email program. A window is divided into two portions
@@ -7217,8 +7213,6 @@ int main( int   argc,
     gtk_container_add (GTK_CONTAINER(window), vpaned);
     gtk_paned_set_handle_size (GTK_PANED(vpaned),
                                10);
-    gtk_paned_set_gutter_size (GTK_PANED(vpaned),
-                               15);                       
     gtk_widget_show (vpaned);
    
     /* Now create the contents of the two halves of the window */
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index bd41cb5..e3b9b5d 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -2430,9 +2430,6 @@ gtk_paned_get_type G_GNUC_CONST
 gtk_paned_pack1
 gtk_paned_pack2
 gtk_paned_set_position
-#ifndef GTK_DISABLE_DEPRECATED
-gtk_paned_compute_position
-#endif
 #endif
 #endif
 
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 64b0429..718d6a9 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1566,17 +1566,6 @@ gtk_paned_get_child2 (GtkPaned *paned)
   return paned->child2;
 }
 
-void
-gtk_paned_compute_position (GtkPaned *paned,
-			    gint      allocation,
-			    gint      child1_req,
-			    gint      child2_req)
-{
-  g_return_if_fail (GTK_IS_PANED (paned));
-
-  gtk_paned_calc_position (paned, allocation, child1_req, child2_req);
-}
-
 static void
 gtk_paned_calc_position (GtkPaned *paned,
                          gint      allocation,
diff --git a/gtk/gtkpaned.h b/gtk/gtkpaned.h
index 178d6cf..7721f94 100644
--- a/gtk/gtkpaned.h
+++ b/gtk/gtkpaned.h
@@ -127,15 +127,6 @@ void        gtk_paned_set_position (GtkPaned       *paned,
 GtkWidget * gtk_paned_get_child1   (GtkPaned       *paned);
 GtkWidget * gtk_paned_get_child2   (GtkPaned       *paned);
 
-#ifndef GTK_DISABLE_DEPRECATED
-/* Internal function */
-void    gtk_paned_compute_position (GtkPaned  *paned,
-                                    gint       allocation,
-                                    gint       child1_req,
-                                    gint       child2_req);
-#define	gtk_paned_gutter_size(p,s)		(void) 0
-#define	gtk_paned_set_gutter_size(p,s)		(void) 0
-#endif /* GTK_DISABLE_DEPRECATED */
 
 G_END_DECLS
 



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