/* Mouse button got released */
public override bool button_release_event(Gdk.EventButton event)
{
+ if (model == null) return false;
//stderr.printf("Mouse released on %d %s\n", cur_el, label_cache[cur_el]);
// Emit row_activated if applicable
- if (model != null)
+ int x = (int)event.x;
+ if (x < allocation.width / 3)
{
Gtk.TreeIter iter;
if (model.iter_nth_child(out iter, null, cur_el))
Gtk.TreePath path = model.get_path(iter);
row_activated(path);
}
+ } else if (cur_pfx != null && x > allocation.width * 2 / 3) {
+ stderr.printf("Mouse released on prefix %s\n", cur_pfx.prefix);
}
return false;
}