[egg-list-box/flow-box-enhancements] Some more private cleanups
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [egg-list-box/flow-box-enhancements] Some more private cleanups
- Date: Sun, 29 Sep 2013 07:37:26 +0000 (UTC)
commit 09bf49efb3cd8f2718f2eea24cd928b9fbff07be
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 28 21:41:55 2013 -0400
Some more private cleanups
egg-flow-box.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/egg-flow-box.c b/egg-flow-box.c
index 4b18325..2c45c8f 100644
--- a/egg-flow-box.c
+++ b/egg-flow-box.c
@@ -1249,12 +1249,10 @@ egg_flow_box_size_allocate (GtkWidget *widget,
iter = g_sequence_iter_next (iter))
{
GtkWidget *child;
- EggFlowBoxChildPrivate *child_priv;
gint position;
gint this_item_size;
child = g_sequence_get (iter);
- child_priv = egg_flow_box_child_get_instance_private (EGG_FLOW_BOX_CHILD (child));
if (!child_is_visible (child))
continue;
@@ -1388,7 +1386,6 @@ egg_flow_box_remove (GtkContainer *container,
gboolean was_visible;
gboolean was_selected;
EggFlowBoxChild *child;
- EggFlowBoxChildPrivate *child_priv;
if (EGG_IS_FLOW_BOX_CHILD (widget))
child = EGG_FLOW_BOX_CHILD (widget);
@@ -1402,10 +1399,8 @@ egg_flow_box_remove (GtkContainer *container,
}
}
- child_priv = CHILD_PRIV (child);
-
was_visible = child_is_visible (GTK_WIDGET (child));
- was_selected = child_priv->selected;
+ was_selected = CHILD_PRIV (child)->selected;
if (child == priv->prelight_child)
priv->prelight_child = NULL;
@@ -1415,7 +1410,7 @@ egg_flow_box_remove (GtkContainer *container,
priv->selected_child = NULL;
gtk_widget_unparent (GTK_WIDGET (child));
- g_sequence_remove (child_priv->iter);
+ g_sequence_remove (CHILD_PRIV (child)->iter);
if (was_visible && gtk_widget_get_visible (GTK_WIDGET (box)))
gtk_widget_queue_resize (GTK_WIDGET (box));
@@ -3059,7 +3054,6 @@ egg_flow_box_move_cursor (EggFlowBox *box,
EggFlowBoxChild *child;
EggFlowBoxChild *prev;
EggFlowBoxChild *next;
- EggFlowBoxChildPrivate *child_priv;
GtkAllocation allocation;
gint page_size;
GSequenceIter *iter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]