Commit from LXDE Pootle server by user sotrud_nik.: 217 of 295 strings translated...
[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 #include <libfm/fm.h>
27
28 G_BEGIN_DECLS
29
30 /* The FM_CHECK_VERSION macro is defined in libfm >= 1.0.2 */
31 #ifndef FM_CHECK_VERSION
32 # define FM_CHECK_VERSION(...) 0
33 #endif
34
35 /* After opening any window/dialog/tool, this should be called. */
36 void pcmanfm_ref();
37
38 /* After closing any window/dialog/tool, this should be called.
39 * If the last window is closed and we are not a deamon, pcmanfm will quit.
40 */
41 void pcmanfm_unref();
42
43 gboolean pcmanfm_open_folder(GAppLaunchContext* ctx, GList* folder_infos, gpointer user_data, GError** err);
44
45 char* pcmanfm_get_profile_dir(gboolean create);
46 void pcmanfm_save_config(gboolean immediate);
47
48 void pcmanfm_open_folder_in_terminal(GtkWindow* parent, FmPath* dir);
49
50 G_END_DECLS
51
52 #endif