summaryrefslogtreecommitdiff
path: root/applets/clock/clock-utils.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 22:56:10 -0300
committerPerberos <[email protected]>2011-12-01 22:56:10 -0300
commitc51ef797a707f4e2c6f9688d4378f2b0e9898a66 (patch)
tree019ae92bb53c19b30077545cb14743cbd1b57aef /applets/clock/clock-utils.h
downloadmate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.bz2
mate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'applets/clock/clock-utils.h')
-rw-r--r--applets/clock/clock-utils.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/applets/clock/clock-utils.h b/applets/clock/clock-utils.h
new file mode 100644
index 00000000..a185d9e2
--- /dev/null
+++ b/applets/clock/clock-utils.h
@@ -0,0 +1,57 @@
+/*
+ * clock-utils.h
+ *
+ * Copyright (C) 2007 Vincent Untz <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ *
+ * Authors:
+ * Vincent Untz <[email protected]>
+ *
+ * Most of the original code comes from clock.c
+ */
+
+#ifndef __CLOCK_UTILS_H__
+#define __CLOCK_UTILS_H__
+
+#include <gtk/gtk.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Needs to match the indices in the combo of the prefs dialog */
+typedef enum {
+ CLOCK_FORMAT_INVALID = 0,
+ CLOCK_FORMAT_12,
+ CLOCK_FORMAT_24,
+ CLOCK_FORMAT_UNIX,
+ CLOCK_FORMAT_INTERNET,
+ CLOCK_FORMAT_CUSTOM
+} ClockFormat;
+
+gboolean clock_locale_supports_am_pm (void);
+ClockFormat clock_locale_format (void);
+
+void clock_utils_display_help (GtkWidget *widget,
+ const char *doc_id,
+ const char *link_id);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CLOCK_UTILS_H__ */