* Use new fm_launch_files_simple API.
[lxde/pcmanfm.git] / src / pcmanfm.h
1 /*
2 * pcmanfm.h
3 *
4 * Copyright 2010 Hong Jen Yee (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 __PCMANFM_H__
23 #define __PCMANFM_H__
24
25 #include <gtk/gtk.h>
26
27 G_BEGIN_DECLS
28
29 /* After opening any window/dialog/tool, this should be called. */
30 void pcmanfm_ref();
31
32 /* After closing any window/dialog/tool, this should be called.
33 * If the last window is closed and we are not a deamon, pcmanfm will quit.
34 */
35 void pcmanfm_unref();
36
37 gboolean pcmanfm_open_folder(GAppLaunchContext* ctx, GList* folder_infos, gpointer user_data, GError** err);
38
39 G_END_DECLS
40
41 #endif