[egg-list-box/gmenumodel] Be sure to set separator to NULL if we need to



commit 54004865a8cee293a76e649493fa838d3967820b
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Jun 5 09:27:37 2013 -0400

    Be sure to set separator to NULL if we need to
    
    In the separator update function, ensure we always explicitly set the
    separator, even if to NULL.

 menumodel.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/menumodel.vala b/menumodel.vala
index fae5eb5..56129f1 100644
--- a/menumodel.vala
+++ b/menumodel.vala
@@ -59,6 +59,8 @@ public class MenuBox : Egg.ListBox {
                                separator = new Gtk.Label ("-- " + found.label + " --");
                        } else if (before != null) {
                                separator = new Gtk.Label ("----");
+                       } else {
+                               separator = null;
                        }
                } else {
                        separator = null;


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