2 * Copyright (C) 2008 - 2016 The Geeqie Team
4 * Author: Laurent Monin
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #include <gdk-pixbuf/gdk-pixbuf.h>
35 DIR_COLUMN_POINTER = 0,
68 guint drop_scroll_id; /**< event source id */
71 void (*select_func)(ViewDir *vd, FileData *fd, gpointer data);
74 void (*dnd_drop_update_func)(ViewDir *vd);
75 void (*dnd_drop_leave_func)(ViewDir *vd);
84 ViewDir *vd_new(LayoutWindow *lw);
86 void vd_set_select_func(ViewDir *vdl, void (*func)(ViewDir *vdl, FileData *fd, gpointer data), gpointer data);
88 gboolean vd_set_fd(ViewDir *vdl, FileData *dir_fd);
89 void vd_refresh(ViewDir *vdl);
90 gboolean vd_find_row(ViewDir *vd, FileData *fd, GtkTreeIter *iter);
92 void vd_color_set(ViewDir *vd, FileData *fd, gint color_set);
93 void vd_popup_destroy_cb(GtkWidget *widget, gpointer data);
95 GtkWidget *vd_drop_menu(ViewDir *vd, gint active);
96 GtkWidget *vd_pop_menu(ViewDir *vd, FileData *fd);
98 void vd_new_folder(ViewDir *vd, FileData *dir_fd);
100 void vd_dnd_drop_scroll_cancel(ViewDir *vd);
101 void vd_dnd_init(ViewDir *vd);
103 void vd_activate_cb(GtkTreeView *tview, GtkTreePath *tpath, GtkTreeViewColumn *column, gpointer data);
104 void vd_color_cb(GtkTreeViewColumn *tree_column, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data);
106 gboolean vd_release_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
107 gboolean vd_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
108 gboolean vd_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
111 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */