[gtk+] box: Remove unused private API
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] box: Remove unused private API
- Date: Mon, 31 Oct 2016 11:23:06 +0000 (UTC)
commit 3154d3f25854d51f3e6d8b25dadc1ea70265d2de
Author: Timm Bäder <mail baedert org>
Date: Sat Oct 29 15:50:53 2016 +0200
box: Remove unused private API
gtk/gtkbox.c | 46 ++--------------------------------------------
gtk/gtkboxprivate.h | 4 ----
2 files changed, 2 insertions(+), 48 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index 91a27e5..1127deb 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -128,7 +128,6 @@ struct _GtkBoxPrivate
GtkOrientation orientation;
gint16 spacing;
- guint default_expand : 1;
guint homogeneous : 1;
guint spacing_set : 1;
guint baseline_pos : 2;
@@ -1979,7 +1978,6 @@ gtk_box_init (GtkBox *box)
private->orientation = GTK_ORIENTATION_HORIZONTAL;
private->children = NULL;
- private->default_expand = FALSE;
private->homogeneous = FALSE;
private->spacing = 0;
private->spacing_set = FALSE;
@@ -2143,7 +2141,7 @@ gtk_box_set_spacing (GtkBox *box,
if (private->spacing != spacing)
{
private->spacing = spacing;
- _gtk_box_set_spacing_set (box, TRUE);
+ private->spacing_set = TRUE;
g_object_notify_by_pspec (G_OBJECT (box), props[PROP_SPACING]);
@@ -2219,32 +2217,6 @@ gtk_box_get_baseline_position (GtkBox *box)
return box->priv->baseline_pos;
}
-
-void
-_gtk_box_set_spacing_set (GtkBox *box,
- gboolean spacing_set)
-{
- GtkBoxPrivate *private;
-
- g_return_if_fail (GTK_IS_BOX (box));
-
- private = box->priv;
-
- private->spacing_set = spacing_set ? TRUE : FALSE;
-}
-
-gboolean
-_gtk_box_get_spacing_set (GtkBox *box)
-{
- GtkBoxPrivate *private;
-
- g_return_val_if_fail (GTK_IS_BOX (box), FALSE);
-
- private = box->priv;
-
- return private->spacing_set;
-}
-
/**
* gtk_box_reorder_child:
* @box: a #GtkBox
@@ -2435,26 +2407,12 @@ gtk_box_set_child_packing (GtkBox *box,
gtk_widget_thaw_child_notify (child);
}
-void
-_gtk_box_set_old_defaults (GtkBox *box)
-{
- GtkBoxPrivate *private;
-
- g_return_if_fail (GTK_IS_BOX (box));
-
- private = box->priv;
-
- private->default_expand = TRUE;
-}
-
static void
gtk_box_add (GtkContainer *container,
GtkWidget *widget)
{
- GtkBoxPrivate *priv = GTK_BOX (container)->priv;
-
gtk_box_pack_start (GTK_BOX (container), widget,
- priv->default_expand,
+ FALSE,
TRUE);
}
diff --git a/gtk/gtkboxprivate.h b/gtk/gtkboxprivate.h
index cd99758..85448ff 100644
--- a/gtk/gtkboxprivate.h
+++ b/gtk/gtkboxprivate.h
@@ -25,10 +25,6 @@
G_BEGIN_DECLS
-void _gtk_box_set_old_defaults (GtkBox *box);
-gboolean _gtk_box_get_spacing_set (GtkBox *box);
-void _gtk_box_set_spacing_set (GtkBox *box,
- gboolean spacing_set);
GList *_gtk_box_get_children (GtkBox *box);
GtkCssGadget *gtk_box_get_gadget (GtkBox *box);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]