You could try catching the button-press event. Translate the events X/Y to get the path to the selected row (gtk_tree_view_get_path_at_pos). Then look up the data in the row to see if you wish to disable it. If so, make sure the events RetVal is true to stop further signal emission (thus stopping the treeview's internal handler from receiving the event).
-- Christian On Fri, Jan 16, 2009 at 10:03 AM, Wolfgang Mauer <w.ma...@top-soft.info> wrote: > Hi all, > is it possible to disable a single row(can't be selected) in a treeview? > > Thanks for Help > Wolfgang > > > -- > Top-Soft > Softwareentwicklung > Inhaber: Wolfgang Mauer > Reitersweg 9, 96103 Hallstadt > Tel.: +49 (0)951 / 2221520 > Fax: +49 (0)951 / 2221521 > _______________________________________________ > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list