~ubuntu-branches/ubuntu/quantal/xfce4-datetime-plugin/quantal

« back to all changes in this revision

Viewing changes to panel-plugin/datetime.h

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2006-10-26 22:13:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061026221320-733nc56o8l13iiaf
Tags: 0.4.0-1
* New upstream release, ported to Xfce 4.4 API.         Closes: #370113
* Bumped build-depends on >= 4.4.99.1 (4.4rc1).
* Set Standard policy version to 3.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  $Id$
 
2
 *
 
3
 *  Copyright (C) 2003 Choe Hwanjin(krisna@kldp.org)
 
4
 *  Copyright (c) 2006 Remco den Breeje <remco@sx.mine.nu>
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU Library General Public License as published 
 
8
 *  by the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  This program 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
 
14
 *  GNU Library General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU Library General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef DATETIME_H
 
22
#define DATETIME_H
 
23
 
 
24
enum {
 
25
  DATE = 0,
 
26
  TIME = 1
 
27
};
 
28
 
 
29
/* types */
 
30
typedef struct {
 
31
  XfcePanelPlugin * plugin;
 
32
  GtkWidget *eventbox;
 
33
  GtkWidget *frame;
 
34
  GtkWidget *vbox;
 
35
  GtkWidget *date_label;
 
36
  GtkWidget *time_label;
 
37
  guint timeout_id;
 
38
 
 
39
  /* settings */
 
40
  gchar *date_font;
 
41
  gchar *time_font;
 
42
  gchar *date_format;
 
43
  gchar *time_format;
 
44
 
 
45
  /* option widgets */
 
46
  GtkWidget *date_font_selector;
 
47
  GtkWidget *date_format_entry;
 
48
  GtkWidget *time_font_selector;
 
49
  GtkWidget *time_format_entry;
 
50
 
 
51
  /* popup calendar */
 
52
  GtkWidget *cal;
 
53
} t_datetime;
 
54
 
 
55
#endif /* datetime.h */
 
56