]> git.sur5r.net Git - glabels/blob - glabels2/src/recent.c
Initial revision
[glabels] / glabels2 / src / recent.c
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  recent.c:  gLabels recent files module
5  *
6  *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  */
22 #include <config.h>
23
24
25 #include "recent.h"
26 #include "prefs.h"
27
28 #include "debug.h"
29
30 static GnomeRecentModel *model;
31
32
33 GnomeRecentModel *
34 gl_recent_get_model (void)
35 {
36         return model;
37 }
38
39 void
40 gl_recent_init (void)
41 {
42         gl_debug (DEBUG_RECENT, "max_recents = %d", gl_prefs->max_recents);
43
44         model = gnome_recent_model_new ("glabels", gl_prefs->max_recents);
45 }