~noskcaj/ubuntu/utopic/libfm/merge

« back to all changes in this revision

Viewing changes to src/fm-gtk.c

  • 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-gtk.c
 
3
 *      
 
4
 *      Copyright 2009 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
#include "fm-gtk.h"
 
23
 
 
24
gboolean fm_gtk_init(FmConfig* config)
 
25
{
 
26
    if( G_UNLIKELY(!fm_init(config)) )
 
27
        return FALSE;
 
28
 
 
29
    _fm_icon_pixbuf_init();
 
30
    _fm_thumbnail_init();
 
31
 
 
32
    return TRUE;
 
33
}
 
34
 
 
35
void fm_gtk_finalize()
 
36
{
 
37
    _fm_icon_pixbuf_finalize();
 
38
    _fm_thumbnail_finalize();
 
39
 
 
40
    fm_finalize();
 
41
}
 
42