[gtk+/gtk-2-90: 93/156] Remove deprecated code: GtkHButtonBox



commit d83deb84ee7d17071e3975d2d840a8d4e6bce374
Author: Javier Jardón <javierjc1982 gmail com>
Date:   Sat Oct 10 21:31:22 2009 +0200

    Remove deprecated code: GtkHButtonBox

 docs/reference/gtk/gtk-sections.txt   |    4 ---
 docs/reference/gtk/tmpl/gtkhbbox.sgml |   36 -----------------------------
 gtk/gtk.symbols                       |    6 -----
 gtk/gtkhbbox.c                        |   41 ---------------------------------
 gtk/gtkhbbox.h                        |    8 ------
 5 files changed, 0 insertions(+), 95 deletions(-)
---
diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt
index aa1cc99..4127eb0 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -1809,10 +1809,6 @@ gtk_handle_box_get_type
 <TITLE>GtkHButtonBox</TITLE>
 GtkHButtonBox
 gtk_hbutton_box_new
-gtk_hbutton_box_get_spacing_default
-gtk_hbutton_box_get_layout_default
-gtk_hbutton_box_set_spacing_default
-gtk_hbutton_box_set_layout_default
 <SUBSECTION Standard>
 GTK_HBUTTON_BOX
 GTK_IS_HBUTTON_BOX
diff --git a/docs/reference/gtk/tmpl/gtkhbbox.sgml b/docs/reference/gtk/tmpl/gtkhbbox.sgml
index af611bd..e606937 100644
--- a/docs/reference/gtk/tmpl/gtkhbbox.sgml
+++ b/docs/reference/gtk/tmpl/gtkhbbox.sgml
@@ -60,39 +60,3 @@ Creates a new horizontal button box.
 </para>
 
 @Returns: a new button box #GtkWidget.
-
-
-<!-- ##### FUNCTION gtk_hbutton_box_get_spacing_default ##### -->
-<para>
-Retrieves the current default spacing for horizontal button boxes. This is the number of pixels 
-to be placed between the buttons when they are arranged.
-</para>
-
- Returns: the default number of pixels between buttons.
-
-
-<!-- ##### FUNCTION gtk_hbutton_box_get_layout_default ##### -->
-<para>
-Retrieves the current layout used to arrange buttons in button box widgets.
-</para>
-
- Returns: the current #GtkButtonBoxStyle.
-
-
-<!-- ##### FUNCTION gtk_hbutton_box_set_spacing_default ##### -->
-<para>
-Changes the default spacing that is placed between widgets in an
-horizontal button box.
-</para>
-
- spacing: an integer value.
-
-
-<!-- ##### FUNCTION gtk_hbutton_box_set_layout_default ##### -->
-<para>
-Sets a new layout mode that will be used by all button boxes.
-</para>
-
- layout: a new #GtkButtonBoxStyle.
-
-
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index b8db904..3351d24 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -1557,12 +1557,6 @@ gtk_hbox_new
 #if IN_FILE(__GTK_HBUTTON_BOX_C__)
 gtk_hbutton_box_new
 gtk_hbutton_box_get_type G_GNUC_CONST
-#ifndef GTK_DISABLE_DEPRECATED
-gtk_hbutton_box_get_layout_default
-gtk_hbutton_box_get_spacing_default
-gtk_hbutton_box_set_layout_default
-gtk_hbutton_box_set_spacing_default
-#endif
 #endif
 #endif
 
diff --git a/gtk/gtkhbbox.c b/gtk/gtkhbbox.c
index 50131d1..be5a5c9 100644
--- a/gtk/gtkhbbox.c
+++ b/gtk/gtkhbbox.c
@@ -31,9 +31,6 @@
 #include "gtkalias.h"
 
 
-static gint default_spacing = 30;
-static gint default_layout_style = GTK_BUTTONBOX_EDGE;
-
 G_DEFINE_TYPE (GtkHButtonBox, gtk_hbutton_box, GTK_TYPE_BUTTON_BOX)
 
 static void
@@ -54,44 +51,6 @@ gtk_hbutton_box_new (void)
   return g_object_new (GTK_TYPE_HBUTTON_BOX, NULL);
 }
 
-
-/* set default value for spacing */
-
-void
-gtk_hbutton_box_set_spacing_default (gint spacing)
-{
-  default_spacing = spacing;
-}
-
-
-/* set default value for layout style */
-
-void
-gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout)
-{
-  g_return_if_fail (layout >= GTK_BUTTONBOX_DEFAULT_STYLE &&
-		    layout <= GTK_BUTTONBOX_CENTER);
-
-  default_layout_style = layout;
-}
-
-/* get default value for spacing */
-
-gint
-gtk_hbutton_box_get_spacing_default (void)
-{
-  return default_spacing;
-}
-
-
-/* get default value for layout style */
-
-GtkButtonBoxStyle
-gtk_hbutton_box_get_layout_default (void)
-{
-  return default_layout_style;
-}
-
 GtkButtonBoxStyle
 _gtk_hbutton_box_get_layout_default (void)
 {
diff --git a/gtk/gtkhbbox.h b/gtk/gtkhbbox.h
index 25eecba..89259c9 100644
--- a/gtk/gtkhbbox.h
+++ b/gtk/gtkhbbox.h
@@ -64,14 +64,6 @@ GtkWidget* gtk_hbutton_box_new      (void);
 
 /* buttons can be added by gtk_container_add() */
 
-#ifndef GTK_DISABLE_DEPRECATED
-gint gtk_hbutton_box_get_spacing_default (void);
-GtkButtonBoxStyle gtk_hbutton_box_get_layout_default (void);
-
-void gtk_hbutton_box_set_spacing_default (gint spacing);
-void gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout);
-#endif
-
 /* private API */
 GtkButtonBoxStyle _gtk_hbutton_box_get_layout_default (void);
 



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