4
* Copyright 2009 PCMan <pcman.tw@gmail.com>
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
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22
#ifndef __FM_PLACES_VIEW_H__
23
#define __FM_PLACES_VIEW_H__
28
#include "fm-dnd-dest.h"
32
#define FM_PLACES_VIEW_TYPE (fm_places_view_get_type())
33
#define FM_PLACES_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
34
FM_PLACES_VIEW_TYPE, FmPlacesView))
35
#define FM_PLACES_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
36
FM_PLACES_VIEW_TYPE, FmPlacesViewClass))
37
#define IS_FM_PLACES_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
39
#define IS_FM_PLACES_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
42
typedef struct _FmPlacesView FmPlacesView;
43
typedef struct _FmPlacesViewClass FmPlacesViewClass;
49
GtkTreePath* dest_row;
50
GtkTreeViewDropPosition dest_pos;
53
struct _FmPlacesViewClass
55
GtkTreeViewClass parent_class;
56
void (*chdir)(FmPath* path);
59
GType fm_places_view_get_type (void);
60
GtkWidget* fm_places_view_new (void);
61
void fm_places_select(FmPlacesView* pv, FmPath* path);
65
#endif /* __FM_PLACES_VIEW_H__ */