}
}
+ //public virtual signal void cursor_changed ();
+ public virtual signal void row_activated(Gtk.TreePath path);
+
public FisheyeList()
{
model = null;
private void on_rows_reordered(Gtk.TreePath path, Gtk.TreeIter iter, void* new_order) { build_label_cache_needed = true; }
/* Mouse button got pressed over widget */
+ /*
public override bool button_press_event(Gdk.EventButton event)
{
stderr.printf("Mouse pressed on %d %s\n", cur_el, label_cache[cur_el]);
return false;
}
+ */
/* Mouse button got released */
public override bool button_release_event(Gdk.EventButton event)
{
stderr.printf("Mouse released on %d %s\n", cur_el, label_cache[cur_el]);
- // ...
+
+ // Emit row_activated if applicable
+ if (model != null)
+ {
+ Gtk.TreeIter iter;
+ if (model.iter_nth_child(out iter, null, cur_el))
+ {
+ Gtk.TreePath path = model.get_path(iter);
+ row_activated(path);
+ }
+ }
return false;
}