Initial import.
[lxde/pcmanfm.git] / src / pcmanfm.c
... / ...
CommitLineData
1/*
2 * pcmanfm.c
3 *
4 * Copyright 2009 PCMan <pcman@thinkpad>
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#include <config.h>
23#include <gtk/gtk.h>
24#include <stdio.h>
25
26#include <fm-gtk.h>
27#include "main-win.h"
28
29int main(int argc, char** argv)
30{
31 GtkWidget* w;
32 gtk_init(&argc, &argv);
33
34 fm_gtk_init(NULL);
35
36 w = fm_main_win_new();
37 gtk_window_set_default_size(w, 640, 480);
38 gtk_widget_show(w);
39
40 if(argc > 1)
41 {
42 FmPath* path = fm_path_new(argv[1]);
43 fm_main_win_chdir(w, path);
44 fm_path_unref(path);
45 }
46
47 gtk_main();
48
49 fm_finalize();
50
51 return 0;
52}