~ubuntu-branches/ubuntu/vivid/xfce4-panel/vivid

« back to all changes in this revision

Viewing changes to plugins/clock/clock-time.h

  • Committer: Package Import Robot
  • Author(s): Unit 193, Unit 193, Lionel Le Folgoc
  • Date: 2014-02-12 15:41:39 UTC
  • mfrom: (1.1.36)
  • Revision ID: package-import@ubuntu.com-20140212154139-j4cm4hlso68qadjw
Tags: 4.11.0~0.git20140209.86a1b73-0ubuntu1
[ Unit 193 ]
* New git snapshot. (LP: #1238997)
* debian/patches:
  - 02_potfiles-fix-ftbfs.patch: added, add missing files to po/POTFILES.in.
* debian/control: add b-dep on newer garcon.

[ Lionel Le Folgoc ]
* debian/patches:
  - xubuntu_add-calendar-popup-to-clock-plugin.patch: dropped, included.
  - series: refreshed.
* debian/xfce4-panel.install: include both (gtk2 and gtk3) wrappers.
* debian/rules: pass --enable-gtk3 --disable-silent-rules to configure script.
* debian/control: add b-dep on libgtk-3-dev.
* debian/xfce4-panel.shlibs: updated for the gtk3 library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2013      Andrzej <ndrwrdck@gmail.com>
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License as published by the Free
 
6
 * Software Foundation; either version 2 of the License, or (at your option)
 
7
 * any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful, but WITHOUT
 
10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 
12
 * more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with this library; if not, write to the Free Software
 
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
17
 */
 
18
 
 
19
#ifndef __CLOCK_TIME_H__
 
20
#define __CLOCK_TIME_H__
 
21
 
 
22
#include <glib.h>
 
23
#include <libxfce4util/libxfce4util.h>
 
24
#include <libxfce4panel/libxfce4panel.h>
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
#define CLOCK_INTERVAL_SECOND (1)
 
29
#define CLOCK_INTERVAL_MINUTE (60)
 
30
 
 
31
typedef struct _ClockTime          ClockTime;
 
32
typedef struct _ClockTimeClass     ClockTimeClass;
 
33
typedef struct _ClockTimeTimeout   ClockTimeTimeout;
 
34
 
 
35
#define XFCE_TYPE_CLOCK_TIME              (clock_time_get_type ())
 
36
#define XFCE_CLOCK_TIME(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFCE_TYPE_CLOCK_TIME, ClockTime))
 
37
#define XFCE_CLOCK_TIME_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_TYPE_CLOCK_TIME, ClockTimeClass))
 
38
#define XFCE_IS_CLOCK_TIME(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFCE_TYPE_CLOCK_TIME))
 
39
#define XFCE_IS_CLOCK_TIME_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_CLOCK_TIME))
 
40
#define XFCE_CLOCK_TIME_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_CLOCK_TIME, ClockTimeClass))
 
41
 
 
42
 
 
43
 
 
44
GType               clock_time_get_type               (void) G_GNUC_CONST;
 
45
 
 
46
void                clock_time_register_type          (XfcePanelTypeModule *type_module);
 
47
 
 
48
ClockTime          *clock_time_new                    (void);
 
49
 
 
50
ClockTimeTimeout   *clock_time_timeout_new            (guint                interval,
 
51
                                                       ClockTime           *time,
 
52
                                                       GCallback            c_handler,
 
53
                                                       gpointer             gobject);
 
54
 
 
55
void                clock_time_timeout_set_interval   (ClockTimeTimeout    *timeout,
 
56
                                                       guint                interval);
 
57
 
 
58
void                clock_time_timeout_free           (ClockTimeTimeout    *timeout);
 
59
 
 
60
GDateTime          *clock_time_get_time               (ClockTime           *time);
 
61
 
 
62
gchar              *clock_time_strdup_strftime        (ClockTime           *time,
 
63
                                                       const gchar         *format);
 
64
 
 
65
guint               clock_time_interval_from_format   (const gchar         *format);
 
66
 
 
67
G_END_DECLS
 
68
 
 
69
#endif /* !__CLOCK_TIME_H__ */