aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/year-view.h
blob: 77e63366d595e903a8122484fcbaf57823ed119b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* Year view display for Gnomecal
 *
 * Copyright (C) 1998 The Free Software Foundation
 *
 * Authors: Arturo Espinosa <arturo@nuclecu.unam.mx>
 *          Federico Mena <federico@nuclecu.unam.mx>
 */

#ifndef YEAR_VIEW_H
#define YEAR_VIEW_H

#include <libgnome/gnome-defs.h>
#include "gnome-cal.h"
#include "gnome-month-item.h"


BEGIN_GNOME_DECLS


#define TYPE_YEAR_VIEW            (year_view_get_type ())
#define YEAR_VIEW(obj)            (GTK_CHECK_CAST ((obj), TYPE_YEAR_VIEW, YearView))
#define YEAR_VIEW_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), TYPE_YEAR_VIEW, YearViewClass))
#define IS_YEAR_VIEW(obj)         (GTK_CHECK_TYPE ((obj), TYPE_YEAR_VIEW))
#define IS_YEAR_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), TYPE_YEAR_VIEW))


typedef struct _YearView YearView;
typedef struct _YearViewClass YearViewClass;

struct _YearView {
    GnomeCanvas canvas;

    GnomeCalendar *calendar;    /* The calendar we are associated to */

    int year;           /* The year we are displaying */

    GnomeCanvasItem *heading;   /* Big heading with year */
    GnomeCanvasItem *titles[12];    /* Titles for months */
    GnomeCanvasItem *mitems[12];    /* Month items */

    int old_marked_day;     /* The day that is marked as the current day */

    int min_width;          /* Minimum dimensions of year view, used for size_request*/
    int min_height;

    guint idle_id;          /* ID of idle handler for resize */

    int need_resize : 1;        /* Specifies whether we need to resize the canvas items or not */
};

struct _YearViewClass {
    GnomeCanvasClass parent_class;
};


/* Standard Gtk function */
GtkType year_view_get_type (void);

/* Creates a new year view widget associated to the specified calendar */
GtkWidget *year_view_new (GnomeCalendar *calendar, time_t year);

/* Notifies the year view that a calendar object has changed */
void year_view_update (YearView *yv, iCalObject *ico, int flags);

/* Notifies the year view about a change of date */
void year_view_set (YearView *yv, time_t year);

/* Notifies the year view that the time format has changed */
void year_view_time_format_changed (YearView *yv);

/* Notifies the year view that colors have changed */
void year_view_colors_changed (YearView *yv);


END_GNOME_DECLS

#endif
ss='deletions'>-0/+25 * Sort pathsbdrewery2013-08-301-6/+6 * Sort each groupbdrewery2013-08-301-184/+174 * Cache more functionsbapt2013-08-241-0/+4 * Cache strlcpy and strlcat testsbapt2013-08-241-0/+2 * Remove unwanted changesbapt2013-06-051-1/+1 * Propertly makes config.sub working as expecting on amd64bapt2013-06-051-8/+2 * Actually commit the right config.subbapt2013-06-051-0/+6 * Update to lastest version from upstreambapt2013-06-042-595/+1013 * Eliminate redundancy in this file which also helps avoids typos.bdrewery2013-05-311-372/+372 * Fix typosbdrewery2013-05-311-2/+2 * Revert as it brings too many breakage, it needs more work before getting syncbapt2013-05-242-1021/+592 * Cache more autotools testsbapt2013-05-241-3/+179 * Sync with latest version from upstreambapt2013-05-242-592/+1021 * All supported FreeBSD have net/if.h and net/if_media.h cache them in config.s...bapt2013-04-301-0/+2 * waitid(2) is only in 10bdrewery2013-04-251-1/+2 * Add a global config.site cache.bapt2013-04-231-0/+215 * Add in many popular licenses used by the ports infrastructure. Thesetabthorpe2012-02-2814-0/+3684 * - Include etc/devd in mtree, as referenced in devd.conf(5)pav2010-11-131-1/+3