Date: Fri, 20 May 2005 17:56:17 +0200 (CEST) Message-Id: <20050520.175617.104029881.andrieu at ijm.jussieu.fr> To: pascal.brisset at enac.fr Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: Reorderable tree view From: Olivier Andrieu In-Reply-To: <428D8905.7070008 at recherche.enac.fr> References: <428D8905.7070008 at recherche.enac.fr> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Pascal Brisset [Fri, 20 May 2005]: > Hi, > > I'm looking for a way to constraint the drag and drop actions in a > GTree.view. Is it possible to get the "drop" event to check it and > possibly forbid it ? What do you want to drag ? rows or columns ? - for columns you have gtk_tree_view_set_column_drag_function() (not wrapped in lablgtk though) - for rows, it's more involved and has to be done in C. You'll have to redefine the row_drop_possible method in the GtkTreeDragDest interface (which is implemented by GtkTreeStore and GtkListStore). (I think, I've never done this before !) -- Olivier