Re: d'n'd on a listview




Hi again!

Sorry if this topic was explained in the past.
I connected drag'n'drop events to my treeview:
  g_signal_connect (object, "drag-begin",
                    G_CALLBACK (_drag_start_cb), NULL);
  g_signal_connect (object, "drag-data-get",
                    G_CALLBACK (_drag_data_get_cb), NULL);
  g_signal_connect (object, "drag-data-received",
                    G_CALLBACK (_drop_cb), NULL);
  g_signal_connect (object, "drag-end",
                    G_CALLBACK (_drag_end_cb), NULL);

  gtk_tree_view_enable_model_drag_source (widget, 0, target_table, 1,
                                          GDK_ACTION_COPY |
GDK_ACTION_MOVE);
 gtk_tree_view_enable_model_drag_dest (widget,
target_table, 1, GDK_ACTION_COPY | GDK_ACTION_MOVE);

but none if this callbacks are called when I drag and drop rows from
this treeview. why ? 

thanks in advance
hs



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]