Updated Spanish translation
[anjuta-git-plugin.git] / libegg / egg-recent-view.c
blobbf54f07ed498105e067d7e74f82a5989289ab256
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /**
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as
5 * published by the Free Software Foundation; either version 2 of the
6 * License, or (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 * Authors:
18 * James Willcox <jwillcox@cs.indiana.edu>
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
26 #include <string.h>
27 #include <gtk/gtk.h>
28 #include "egg-recent-view.h"
31 GtkType
32 egg_recent_view_get_type (void)
34 static GtkType view_type = 0;
36 if (!view_type)
38 static const GTypeInfo view_info =
40 sizeof (EggRecentViewClass), /* class_size */
41 NULL, /* base_init */
42 NULL, /* base_finalize */
45 view_type = g_type_register_static (G_TYPE_INTERFACE,
46 "EggRecentView",
47 &view_info, 0);
50 return view_type;
53 EggRecentModel *
54 egg_recent_view_get_model (EggRecentView *view)
56 g_return_val_if_fail (view, NULL);
58 return EGG_RECENT_VIEW_GET_CLASS (view)->do_get_model (view);
61 void
62 egg_recent_view_set_model (EggRecentView *view, EggRecentModel *model)
64 g_return_if_fail (view);
65 g_return_if_fail (model);
67 EGG_RECENT_VIEW_GET_CLASS (view)->do_set_model (view, model);