[gtk+/gtk-2-90: 65/200] Remove deprecated GtkVButtonBox functions



commit 5ed56120a6d45280dd37496033c0113b2563f54e
Author: Javier Jardón <javierjc1982 gmail com>
Date:   Thu Oct 8 17:53:55 2009 +0200

    Remove deprecated GtkVButtonBox functions

 gtk/gtkvbbox.c |   62 --------------------------------------------------------
 gtk/gtkvbbox.h |   11 +---------
 2 files changed, 1 insertions(+), 72 deletions(-)
---
diff --git a/gtk/gtkvbbox.c b/gtk/gtkvbbox.c
index c6bf369..58a3942 100644
--- a/gtk/gtkvbbox.c
+++ b/gtk/gtkvbbox.c
@@ -85,68 +85,6 @@ gtk_vbutton_box_new (void)
   return g_object_new (GTK_TYPE_VBUTTON_BOX, NULL);
 }
 
-/**
- * gtk_vbutton_box_set_spacing_default:
- * @spacing: an integer value.
- *
- * Changes the default spacing that is placed between widgets in an
- * vertical button box.
- *
- * Deprecated: 2.0: Use gtk_box_set_spacing() instead.
- */
-void
-gtk_vbutton_box_set_spacing_default (gint spacing)
-{
-  default_spacing = spacing;
-}
-
-/**
- * gtk_vbutton_box_set_layout_default:
- * @layout: a new #GtkButtonBoxStyle.
- *
- * Sets a new layout mode that will be used by all button boxes.
- *
- * Deprecated: 2.0: Use gtk_button_box_set_layout() instead.
- */
-void
-gtk_vbutton_box_set_layout_default (GtkButtonBoxStyle layout)
-{
-  g_return_if_fail (layout >= GTK_BUTTONBOX_DEFAULT_STYLE &&
-		    layout <= GTK_BUTTONBOX_CENTER);
-
-  default_layout_style = layout;
-}
-
-/**
- * gtk_vbutton_box_get_spacing_default:
- *
- * Retrieves the current default spacing for vertical button boxes. This is the number of pixels
- * to be placed between the buttons when they are arranged.
- *
- * Returns: the default number of pixels between buttons.
- *
- * Deprecated: 2.0: Use gtk_box_get_spacing() instead.
- */
-gint
-gtk_vbutton_box_get_spacing_default (void)
-{
-  return default_spacing;
-}
-
-/**
- * gtk_vbutton_box_get_layout_default:
- *
- * Retrieves the current layout used to arrange buttons in button box widgets.
- *
- * Returns: the current #GtkButtonBoxStyle.
- *
- * Deprecated: 2.0: Use gtk_button_box_get_layout() instead.
- */
-GtkButtonBoxStyle
-gtk_vbutton_box_get_layout_default (void)
-{
-  return default_layout_style;
-}
 
 GtkButtonBoxStyle
 _gtk_vbutton_box_get_layout_default (void)
diff --git a/gtk/gtkvbbox.h b/gtk/gtkvbbox.h
index 996eb57..61bc4a1 100644
--- a/gtk/gtkvbbox.h
+++ b/gtk/gtkvbbox.h
@@ -63,20 +63,11 @@ struct _GtkVButtonBoxClass
 GType      gtk_vbutton_box_get_type (void) G_GNUC_CONST;
 GtkWidget *gtk_vbutton_box_new      (void);
 
-/* buttons can be added by gtk_container_add() */
-
-#ifndef GTK_DISABLE_DEPRECATED
-gint gtk_vbutton_box_get_spacing_default (void);
-void gtk_vbutton_box_set_spacing_default (gint spacing);
-
-GtkButtonBoxStyle gtk_vbutton_box_get_layout_default (void);
-void gtk_vbutton_box_set_layout_default (GtkButtonBoxStyle layout);
-#endif
 
 /* private API */
 GtkButtonBoxStyle _gtk_vbutton_box_get_layout_default (void);
 
-G_END_DECLS
 
+G_END_DECLS
 
 #endif /* __GTK_VBBOX_H__ */



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