[gtkmm] Gtk::TreeStore::signal_rows_reordered() weirdness
- From: Andrei Yurkevich <urruru ru ru>
- To: gtkmm-list gnome org
- Subject: [gtkmm] Gtk::TreeStore::signal_rows_reordered() weirdness
- Date: Sat, 08 May 2004 04:29:38 +0400
Hi,
I'm having problems with TreeStore::on_rows_reordered callback - I
connect signal_rows_reordered handler, set up my treeview, but the
callback is never called when rows are dragged and replaced:
// in mystore.h:
class MyListStore : public Gtk::ListStore {
public:
TracksListStore ();
static Glib::RefPtr<TracksListStore> create();
virtual void on_rows_reordered (const TreeModel::Path& path,
const TreeModel::iterator& iter,
int* new_order);
... more code ...
};
// in mystore.cc:
MyListStore::some_method () {
... some code ...
signal_rows_reordered().connect ( sigc::mem_fun (*this,
&MyListStore::on_rows_reordered) );
... some more code ...
}
void
MyListStore::on_rows_reordered (const TreeModel::Path& path,
const TreeModel::iterator& iter,
int* new_order)
{
do_something();
}
the problem is that program never hits on_rows_reordered() callback...
Does anybody know where my problem is?
cheers,
Andrei
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]