[egg-list-box] flow-box: Fix another issue with multi-selection



commit a110459f1800f2cd0e050d0417b275851344a483
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 20 23:46:54 2013 -0500

    flow-box: Fix another issue with multi-selection
    
    Toggling the cursor child was not unselecting it in multi
    selection.

 egg-flow-box.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/egg-flow-box.c b/egg-flow-box.c
index d6e09a6..98985e3 100644
--- a/egg-flow-box.c
+++ b/egg-flow-box.c
@@ -2235,7 +2235,7 @@ egg_flow_box_unselect_child_info (EggFlowBox          *box,
   else if (box->priv->selection_mode != GTK_SELECTION_MULTIPLE)
     egg_flow_box_unselect_all_internal (box);
   else
-    child_info->selected = TRUE;
+    child_info->selected = FALSE;
 
   g_signal_emit (box, signals[SELECTED_CHILDREN_CHANGED], 0);
 
@@ -2763,7 +2763,8 @@ egg_flow_box_real_toggle_cursor_child (EggFlowBox *box)
   if (priv->cursor_child == NULL)
     return;
 
-  if (priv->selection_mode == GTK_SELECTION_SINGLE &&
+  if ((priv->selection_mode == GTK_SELECTION_SINGLE ||
+       priv->selection_mode == GTK_SELECTION_MULTIPLE) &&
       priv->cursor_child->selected)
     egg_flow_box_unselect_child_info (box, priv->cursor_child);
   else


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