evolution-3.6.4/widgets/misc/e-menu-tool-action.c

No issues found

Incomplete coverage

Tool Failure ID Location Function Message Data
clang-analyzer no-output-found e-menu-tool-action.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
clang-analyzer no-output-found e-menu-tool-action.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
 1 /*
 2  * e-menu-tool-action.c
 3  *
 4  * This program is free software; you can redistribute it and/or
 5  * modify it under the terms of the GNU Lesser General Public
 6  * License as published by the Free Software Foundation; either
 7  * version 2 of the License, or (at your option) version 3.
 8  *
 9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with the program; if not, see <http://www.gnu.org/licenses/>
16  *
17  *
18  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
19  *
20  */
21 
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
25 
26 #include "e-menu-tool-action.h"
27 
28 G_DEFINE_TYPE (
29 	EMenuToolAction,
30 	e_menu_tool_action,
31 	GTK_TYPE_ACTION)
32 
33 static void
34 e_menu_tool_action_class_init (EMenuToolActionClass *class)
35 {
36 	GtkActionClass *action_class;
37 
38 	action_class = GTK_ACTION_CLASS (class);
39 	action_class->toolbar_item_type = GTK_TYPE_MENU_TOOL_BUTTON;
40 }
41 
42 static void
43 e_menu_tool_action_init (EMenuToolAction *action)
44 {
45 }
46 
47 EMenuToolAction *
48 e_menu_tool_action_new (const gchar *name,
49                         const gchar *label,
50                         const gchar *tooltip,
51                         const gchar *stock_id)
52 {
53 	g_return_val_if_fail (name != NULL, NULL);
54 
55 	return g_object_new (
56 		E_TYPE_MENU_TOOL_ACTION,
57 		"name", name, "label", label, "tooltip",
58 		tooltip, "stock-id", stock_id, NULL);
59 }