nautilus-3.6.3/libnautilus-extension/nautilus-extension-types.c

No issues found

 1 /*
 2  *  nautilus-extension-types.c - Type definitions for Nautilus extensions
 3  * 
 4  *  Copyright (C) 2003 Novell, Inc.
 5  *
 6  *  This library is free software; you can redistribute it and/or
 7  *  modify it under the terms of the GNU Library General Public
 8  *  License as published by the Free Software Foundation; either
 9  *  version 2 of the License, or (at your option) any later version.
10  *
11  *  This library is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  *  Library General Public License for more details.
15  *
16  *  You should have received a copy of the GNU Library General Public
17  *  License along with this library; if not, write to the Free
18  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  *
20  *  Author: Dave Camp <dave@ximian.com>
21  * 
22  */
23 
24 #include <config.h>
25 #include "nautilus-extension-types.h"
26 
27 
28 GType
29 nautilus_operation_result_get_type (void)
30 {
31 	static GType type = 0;
32 	if (type == 0) {
33 		static const GEnumValue values[] = {
34 			{ 
35 				NAUTILUS_OPERATION_COMPLETE, 
36 				"NAUTILUS_OPERATION_COMPLETE",
37 				"complete",
38 			}, 
39 			{
40 				NAUTILUS_OPERATION_FAILED,
41 				"NAUTILUS_OPERATION_FAILED",
42 				"failed",
43 			},
44 			{
45 				NAUTILUS_OPERATION_IN_PROGRESS,
46 				"NAUTILUS_OPERATION_IN_PROGRESS",
47 				"in_progress",
48 			},
49 			{ 0, NULL, NULL }
50 		};
51 		
52 		type = g_enum_register_static ("NautilusOperationResult", 
53 					       values);
54 	}
55 
56 	return type;
57 }