~ubuntu-branches/ubuntu/utopic/almanah/utopic-proposed

« back to all changes in this revision

Viewing changes to src/widgets/calendar-button.h

  • Committer: Package Import Robot
  • Author(s): Angel Abad
  • Date: 2013-09-20 17:22:17 UTC
  • mfrom: (1.3.5) (10.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20130920172217-m0ihvom627502smz
Tags: 0.10.8-2
Upload to unstable (Closes: #722029)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 
2
/*
 
3
 * Almanah
 
4
 * Copyright (C) Álvaro Peña 2011 <alvaropg@gmail.com>
 
5
 *
 
6
 * Almanah is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation, either version 3 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * Almanah 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 General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with Almanah.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef ALMANAH_CALENDAR_BUTTON_H
 
21
#define ALMANAH_CALENDAR_BUTTON_H
 
22
 
 
23
#include <glib.h>
 
24
#include <glib-object.h>
 
25
#include <gtk/gtk.h>
 
26
 
 
27
#include "widgets/calendar.h"
 
28
#include "storage-manager.h"
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
#define ALMANAH_TYPE_CALENDAR_BUTTON            (almanah_calendar_button_get_type ())
 
33
#define ALMANAH_CALENDAR_BUTTON(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), ALMANAH_TYPE_CALENDAR_BUTTON, AlmanahCalendarButton))
 
34
#define ALMANAH_CALENDAR_BUTTON_CLASS(k)        (G_TYPE_CHECK_CLASS_CAST((k), ALMANAH_TYPE_CALENDAR_BUTTON, AlmanahCalendarButtonClass))
 
35
#define ALMANAH_IS_CALENDAR_BUTTON(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), ALMANAH_TYPE_CALENDAR_BUTTON))
 
36
#define ALMANAH_IS_CALENDAR_BUTTON_CLASS(k)     (G_TYPE_CHECK_CLASS_TYPE ((k), ALMANAH_TYPE_CALENDAR_BUTTON))
 
37
#define ALMANAH_CALENDAR_BUTTON_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), ALMANAH_TYPE_CALENDAR_BUTTON, AlmanahCalendarButtonClass))
 
38
 
 
39
typedef struct _AlmanahCalendarButtonPrivate    AlmanahCalendarButtonPrivate;
 
40
 
 
41
typedef struct {
 
42
        GtkToggleButton parent;
 
43
        AlmanahCalendarButtonPrivate *priv;
 
44
} AlmanahCalendarButton;
 
45
 
 
46
typedef struct {
 
47
        GtkToggleButtonClass parent;
 
48
        void (* day_selected) (AlmanahCalendarButton *self);
 
49
} AlmanahCalendarButtonClass;
 
50
 
 
51
GType almanah_calendar_button_get_type (void) G_GNUC_CONST;
 
52
GtkWidget *almanah_calendar_button_new (AlmanahStorageManager *storage_manager) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
 
53
void almanah_calendar_button_set_today_action (AlmanahCalendarButton *self, GtkAction *action);
 
54
void almanah_calendar_button_set_select_date_action (AlmanahCalendarButton *self, GtkAction *action);
 
55
void almanah_calendar_button_set_storage_manager (AlmanahCalendarButton *self, AlmanahStorageManager *storage_manager);
 
56
void almanah_calendar_button_select_date (AlmanahCalendarButton *self, GDate *date);
 
57
void almanah_calendar_button_get_date (AlmanahCalendarButton *self, GDate *date);
 
58
void almanah_calendar_button_popdown (AlmanahCalendarButton *self);
 
59
 
 
60
G_END_DECLS
 
61
 
 
62
#endif /* !ALMANAH_CALENDAR_BUTTON_H */