1 /*
2  * clock-utils.h
3  *
4  * Copyright (C) 2007 Vincent Untz <vuntz@gnome.org>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  *
21  * Authors:
22  *      Vincent Untz <vuntz@gnome.org>
23  *
24  * Most of the original code comes from clock.c
25  */
26 
27 #ifndef __CLOCK_UTILS_H__
28 #define __CLOCK_UTILS_H__
29 
30 #include <gtk/gtk.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /* Needs to match the indices in the combo of the prefs dialog */
37 typedef enum {
38 	CLOCK_FORMAT_INVALID = 0,
39 	CLOCK_FORMAT_12,
40 	CLOCK_FORMAT_24,
41 	CLOCK_FORMAT_UNIX,
42 	CLOCK_FORMAT_INTERNET,
43 	CLOCK_FORMAT_CUSTOM
44 } ClockFormat;
45 
46 gboolean clock_locale_supports_am_pm (void);
47 ClockFormat clock_locale_format (void);
48 
49 void clock_utils_display_help (GtkWidget  *widget,
50 			       const char *doc_id,
51 			       const char *link_id);
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* __CLOCK_UTILS_H__ */
58