Re: Enable drag and drop for treeview?
- From: Jef Driesen <jefdriesen hotmail com>
- To: gtkmm-list gnome org
- Subject: Re: Enable drag and drop for treeview?
- Date: Thu, 03 May 2007 08:50:27 +0200
Jonathon Jongsma wrote:
On 5/2/07, Jef Driesen <jefdriesen hotmail com> wrote:
For my application, I want to be able to re-order rows in a treeview
(treestore model) using drag and drop. According to the gtkmm book, I
can use set_reorderable(). But how can I detect when a drag and drop
operation is finished (to update the underlying database)? I can't find
any signals to connect to. Am I missing something?
What about Gtk::TreeModel::signal_rows_reordered() ?
How could I miss that one? But in the gtk documentation [1] is mentioned
that this signal is not emitted by drag and drop operations. I found an
old post on the gtk-perl mailinglist [2], that says this signal is only
used when sorting.
[1]
http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeModel.html#GtkTreeModel-rows-reordered
[2]
http://mail.gnome.org/archives/gtk-perl-list/2003-September/msg00197.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]