[gnome-contacts/wip/sorted] Fix up separator handling



commit 62ce9fc103c90d20223ed9ac4c0ccffd0e4f53ae
Author: Alexander Larsson <alexl redhat com>
Date:   Mon May 14 17:19:09 2012 +0200

    Fix up separator handling

 src/contacts-sorted.vala |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/src/contacts-sorted.vala b/src/contacts-sorted.vala
index 1a58617..fe993d6 100644
--- a/src/contacts-sorted.vala
+++ b/src/contacts-sorted.vala
@@ -670,16 +670,17 @@ public class Contacts.Sorted : Container {
 	widget.get_child_visible ())
       need_separator = need_separator_func (widget, before_widget);
 
-    if (need_separator &&
-	(info.separator == null || update_if_exist)) {
-      var old_separator = info.separator;
-      update_separator_func (ref info.separator, widget, before_widget);
-      if (old_separator != info.separator) {
-	if (old_separator != null)
-	  old_separator.unparent ();
-	info.separator.set_parent (this);
-	info.separator.show ();
-	this.queue_resize ();
+    if (need_separator) {
+      if (info.separator == null || update_if_exist) {
+	var old_separator = info.separator;
+	update_separator_func (ref info.separator, widget, before_widget);
+	if (old_separator != info.separator) {
+	  if (old_separator != null)
+	    old_separator.unparent ();
+	  info.separator.set_parent (this);
+	  info.separator.show ();
+	  this.queue_resize ();
+	}
       }
     } else {
       if (info.separator != null) {



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