No issues found
Tool | Failure ID | Location | Function | Message | Data |
---|---|---|---|---|---|
clang-analyzer | no-output-found | gal-view-factory-minicard.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None | |
clang-analyzer | no-output-found | gal-view-factory-minicard.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None |
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2 of the License, or (at your option) version 3.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
11 *
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with the program; if not, see <http://www.gnu.org/licenses/>
14 *
15 *
16 * Authors:
17 * Chris Lahey <clahey@ximian.com>
18 *
19 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
20 *
21 */
22
23 #ifdef HAVE_CONFIG_H
24 #include <config.h>
25 #endif
26
27 #include <glib/gi18n.h>
28 #include "gal-view-factory-minicard.h"
29 #include "gal-view-minicard.h"
30
31 G_DEFINE_TYPE (
32 GalViewFactoryMinicard,
33 gal_view_factory_minicard, GAL_TYPE_VIEW_FACTORY)
34
35 static const gchar *
36 gal_view_factory_minicard_get_title (GalViewFactory *factory)
37 {
38 return _("Card View");
39 }
40
41 static const gchar *
42 gal_view_factory_minicard_get_type_code (GalViewFactory *factory)
43 {
44 return "minicard";
45 }
46
47 static GalView *
48 gal_view_factory_minicard_new_view (GalViewFactory *factory,
49 const gchar *name)
50 {
51 return gal_view_minicard_new (name);
52 }
53
54 static void
55 gal_view_factory_minicard_class_init (GalViewFactoryMinicardClass *minicard_class)
56 {
57 GalViewFactoryClass *view_factory_class;
58
59 view_factory_class = GAL_VIEW_FACTORY_CLASS (minicard_class);
60 view_factory_class->get_title = gal_view_factory_minicard_get_title;
61 view_factory_class->get_type_code = gal_view_factory_minicard_get_type_code;
62 view_factory_class->new_view = gal_view_factory_minicard_new_view;
63 }
64
65 static void
66 gal_view_factory_minicard_init (GalViewFactoryMinicard *factory)
67 {
68 }
69
70 /**
71 * gal_view_minicard_new
72 *
73 * A new GalViewFactory for creating Minicard views. Create one of
74 * these and pass it to GalViewCollection for use.
75 *
76 * Returns: The new GalViewFactoryMinicard.
77 */
78 GalViewFactory *
79 gal_view_factory_minicard_new (void)
80 {
81 return g_object_new (GAL_TYPE_VIEW_FACTORY_MINICARD, NULL);
82 }