~noskcaj/ubuntu/utopic/libfm/merge

« back to all changes in this revision

Viewing changes to src/gtk/fm-places-view.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Lee (李健秋)
  • Date: 2010-04-29 03:52:06 UTC
  • Revision ID: james.westby@ubuntu.com-20100429035206-qlj1jwsfcgr5mdx3
Tags: upstream-0.1.11
Import upstream version 0.1.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      fm-places-view.h
 
3
 *      
 
4
 *      Copyright 2009 PCMan <pcman.tw@gmail.com>
 
5
 *      
 
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.
 
10
 *      
 
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.
 
15
 *      
 
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,
 
19
 *      MA 02110-1301, USA.
 
20
 */
 
21
 
 
22
#ifndef __FM_PLACES_VIEW_H__
 
23
#define __FM_PLACES_VIEW_H__
 
24
 
 
25
#include <gtk/gtk.h>
 
26
#include <gio/gio.h>
 
27
#include "fm-path.h"
 
28
#include "fm-dnd-dest.h"
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
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),\
 
38
                        FM_PLACES_VIEW_TYPE))
 
39
#define IS_FM_PLACES_VIEW_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE((klass),\
 
40
                        FM_PLACES_VIEW_TYPE))
 
41
 
 
42
typedef struct _FmPlacesView                    FmPlacesView;
 
43
typedef struct _FmPlacesViewClass               FmPlacesViewClass;
 
44
 
 
45
struct _FmPlacesView
 
46
{
 
47
        GtkTreeView parent;
 
48
    FmDndDest* dnd_dest;
 
49
    GtkTreePath* dest_row;
 
50
    GtkTreeViewDropPosition dest_pos;
 
51
};
 
52
 
 
53
struct _FmPlacesViewClass
 
54
{
 
55
        GtkTreeViewClass parent_class;
 
56
    void (*chdir)(FmPath* path);
 
57
};
 
58
 
 
59
GType           fm_places_view_get_type         (void);
 
60
GtkWidget*      fm_places_view_new                      (void);
 
61
void fm_places_select(FmPlacesView* pv, FmPath* path);
 
62
 
 
63
G_END_DECLS
 
64
 
 
65
#endif /* __FM_PLACES_VIEW_H__ */