aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/view-utils.h
blob: f351b4885de94db8c52baba392fcbbe2c30ff46e (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
/* Miscellaneous utility functions for the calendar view widgets
 *
 * Copyright (C) 1998 The Free Software Foundation
 *
 * Author: Federico Mena <quartic@gimp.org>
 */

#ifndef VIEW_UTILS_H
#define VIEW_UTILS_H


#include <gtk/gtk.h>
#include "calendar.h"


enum {
    VIEW_UTILS_DRAW_END   = 1 << 0,
    VIEW_UTILS_DRAW_SPLIT = 1 << 1
};


void view_utils_draw_events (GtkWidget *widget, GdkWindow *window, GdkGC *gc, GdkRectangle *area,
                 int flags, GList *events, time_t start, time_t end);

void view_utils_draw_textured_frame (GtkWidget *widget, GdkWindow *window, GdkRectangle *rect, GtkShadowType shadow);


struct menu_item {
    char *text;
    GtkSignalFunc callback;
    gpointer data;
    int sensitive;
};

void popup_menu (struct menu_item *items, int nitems, guint32 time);

#endif