~ubuntu-branches/ubuntu/oneiric/almanah/oneiric

« back to all changes in this revision

Viewing changes to src/interface.c

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2011-04-18 16:21:36 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110418162136-l0ik4snrl420srer
Tags: 0.8.0-1
* New upstream release
* Temporarily remove evolution support in unstable
* Disable AM_GCONF_SOURCE_2 macro to fix ftbfs in unstable
  - debian/patches/disable_am_gconf_source_2
  - Build-Depends on dh-autoreconf
  - Use --with autoreconf in rules
* debian/control:
  - Build-Depends on libgtk-3-dev
* debian/rules:
  - Remove unnecessary override_dh_auto_install
* debian/copyright:
  - Update copyright years
  - Update license stanza
* Bump Standards-Version to 3.9.1 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        if (connect_events == TRUE)
107
107
                g_signal_connect (tag, "event", G_CALLBACK (definition_tag_event_cb), NULL);
108
108
}
109
 
 
110
 
/* TODO: This exists so that different calendars can be highlighted according to which days have entries
111
 
 * (i.e. the ones on the print dialogue). This should eventually be replaced by a custom calendar widget. */
112
 
void
113
 
almanah_calendar_month_changed_cb (GtkCalendar *calendar, gpointer user_data)
114
 
{
115
 
        /* Mark the days on the calendar which have diary entries */
116
 
        guint i, year, month, num_days;
117
 
        gboolean *days;
118
 
 
119
 
        gtk_calendar_get_date (calendar, &year, &month, NULL);
120
 
        month++;
121
 
        days = almanah_storage_manager_get_month_marked_days (almanah->storage_manager, year, month, &num_days);
122
 
 
123
 
        gtk_calendar_clear_marks (calendar);
124
 
        for (i = 0; i < num_days; i++) {
125
 
                if (days[i] == TRUE)
126
 
                        gtk_calendar_mark_day (calendar, i + 1);
127
 
                else
128
 
                        gtk_calendar_unmark_day (calendar, i + 1);
129
 
        }
130
 
 
131
 
        g_free (days);
132
 
}