[egg-list-box/flow-box-enhancements] Remove leftover dead code



commit 0a79264dcd57cd9b519a1f1e89ec3bfdadb9a7d1
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Sep 27 21:45:35 2013 -0400

    Remove leftover dead code

 egg-flow-box.c |   63 --------------------------------------------------------
 1 files changed, 0 insertions(+), 63 deletions(-)
---
diff --git a/egg-flow-box.c b/egg-flow-box.c
index 59a36b6..c939d81 100644
--- a/egg-flow-box.c
+++ b/egg-flow-box.c
@@ -3362,69 +3362,6 @@ egg_flow_box_draw (GtkWidget *widget,
   GTK_WIDGET_CLASS (egg_flow_box_parent_class)->draw (widget, cr);
 
   return TRUE;
-
-  state = gtk_widget_get_state_flags (widget);
-  for (iter = g_sequence_get_begin_iter (priv->children);
-       !g_sequence_iter_is_end (iter);
-       iter = g_sequence_iter_next (iter))
-    {
-      EggFlowBoxChild *child_info;
-      ChildFlags flags[3], *found;
-      gint flags_length;
-
-      child_info = g_sequence_get (iter);
-      child_priv = egg_flow_box_child_get_instance_private (child_info);
-
-      flags_length = 0;
-
-      if (child_priv->selected)
-        {
-          found = child_flags_find_or_add (flags, &flags_length, child_info);
-          found->state |= (state | GTK_STATE_FLAG_SELECTED);
-        }
-
-      if (priv->prelight_child == child_info)
-        {
-          found = child_flags_find_or_add (flags, &flags_length, child_info);
-          found->state |= (state | GTK_STATE_FLAG_PRELIGHT);
-        }
-
-      if (priv->active_child == child_info && priv->active_child_active)
-        {
-          found = child_flags_find_or_add (flags, &flags_length, child_info);
-          found->state |= (state | GTK_STATE_FLAG_ACTIVE);
-        }
-
-      for (i = 0; i < flags_length; i++)
-        {
-          ChildFlags *flag = &flags[i];
-          child_priv = egg_flow_box_child_get_instance_private (flag->child);
-          gtk_style_context_save (context);
-          gtk_style_context_set_state (context, flag->state);
-          gtk_render_background (context, cr,
-                                 child_priv->area.x, child_priv->area.y,
-                                 child_priv->area.width, child_priv->area.height);
-          gtk_style_context_restore (context);
-        }
-    }
-
-  if (gtk_widget_has_visible_focus (GTK_WIDGET (box)) && priv->cursor_child != NULL)
-    {
-      gtk_style_context_get_style (context,
-                                   "focus-padding", &focus_pad,
-                                   NULL);
-      child_priv = egg_flow_box_child_get_instance_private (priv->cursor_child);
-      gtk_render_focus (context, cr,
-                        child_priv->area.x + focus_pad,
-                        child_priv->area.y + focus_pad,
-                        child_priv->area.width - 2 * focus_pad,
-                        child_priv->area.height - 2 * focus_pad);
-    }
-
-
-  GTK_WIDGET_CLASS (egg_flow_box_parent_class)->draw ((GtkWidget *) G_TYPE_CHECK_INSTANCE_CAST (box, 
GTK_TYPE_CONTAINER, GtkContainer), cr);
-
-  return TRUE;
 }
 
 static void


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