1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18 * James Willcox <jwillcox@cs.indiana.edu>
28 #include "egg-recent-view.h"
32 egg_recent_view_get_type (void)
34 static GtkType view_type
= 0;
38 static const GTypeInfo view_info
=
40 sizeof (EggRecentViewClass
), /* class_size */
42 NULL
, /* base_finalize */
45 view_type
= g_type_register_static (G_TYPE_INTERFACE
,
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
);
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
);