![]() |
![]() |
![]() |
Libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
void fm_dnd_set_dest_auto_scroll (GtkWidget *drag_dest_widget
,GtkAdjustment *hadj
,GtkAdjustment *vadj
); void fm_dnd_unset_dest_auto_scroll (GtkWidget *drag_dest_widget
);
void fm_dnd_set_dest_auto_scroll (GtkWidget *drag_dest_widget
,GtkAdjustment *hadj
,GtkAdjustment *vadj
);
This function installs a "drag-motion" handler to the dest widget to support auto-scroll when the dragged item is near the margin of the destination widget. For example, when a user drags an item over the bottom of a GtkTreeView, the desired behavior should be to scroll up the content of the tree view and to expose the items below currently visible region. So the user can drop on them.
|
a drag destination widget |
|
horizontal GtkAdjustment |
|
vertical GtkAdjustment |
void fm_dnd_unset_dest_auto_scroll (GtkWidget *drag_dest_widget
);
Unsets what has been done by fm_dnd_set_dest_auto_scroll()
|
drag destination widget. |