[gtk+/gtk-2-90: 93/127] Remove deprecated code: GtkHButtonBox
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 93/127] Remove deprecated code: GtkHButtonBox
- Date: Tue, 17 Nov 2009 19:32:36 +0000 (UTC)
commit bf9fe6a209d43f166ac21a5e27f54b2896923ac1
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 -----------------------------
docs/tutorial/gtk_tut_12.es.sgml | 5 +--
gtk/gtk.symbols | 6 -----
gtk/gtkhbbox.c | 41 ---------------------------------
gtk/gtkhbbox.h | 8 ------
6 files changed, 2 insertions(+), 98 deletions(-)
---
diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt
index 6bda51d..e570059 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -1807,10 +1807,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/docs/tutorial/gtk_tut_12.es.sgml b/docs/tutorial/gtk_tut_12.es.sgml
index 43657aa..4641c1f 100755
--- a/docs/tutorial/gtk_tut_12.es.sgml
+++ b/docs/tutorial/gtk_tut_12.es.sgml
@@ -6821,9 +6821,8 @@ que definen como se distribuyen los botones. Puede cambiar el
espaciado que hay entre los botones con:
<tscreen><verb>
-void gtk_hbutton_box_set_spacing_default( gint spacing );
-
-void gtk_vbutton_box_set_spacing_default( gint spacing );
+void gtk_box_set_spacing( GtkBox *box,
+ gint spacing );
</verb></tscreen>
Igualmente, se pueden obtener los actuales valores para el espaciado
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index d143e1a..bc5b0a4 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -1549,12 +1549,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]