~ubuntu-branches/ubuntu/precise/evolution/precise

« back to all changes in this revision

Viewing changes to calendar/gui/alarm-notify/alarm-queue.c

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-09-08 09:38:57 UTC
  • mfrom: (1.1.84 upstream)
  • Revision ID: package-import@ubuntu.com-20110908093857-6lfl04ke2ns3kx2o
Tags: 3.1.91-0ubuntu1
* New upstream release. (LP: #843769)
* debian/control: bump e-d-s Build-Depends to 3.1.91. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
message_proxy (Message *msg)
181
181
{
182
182
        g_return_if_fail (msg->func != NULL);
183
 
 
 
183
 *
184
184
        msg->func (msg);
185
185
}
186
 
 
 
186
 *
187
187
static gpointer
188
188
create_thread_pool (void)
189
189
{
344
344
                     gboolean free_object,
345
345
                     gboolean remove_alarm)
346
346
{
347
 
        QueuedAlarm *qa=NULL;
 
347
        QueuedAlarm *qa = NULL;
348
348
        GSList *l;
349
349
 
350
350
        debug (("..."));
576
576
 
577
577
/* Loads the alarms of a client for a given range of time */
578
578
static void
579
 
load_alarms (ClientAlarms *ca, time_t start, time_t end)
 
579
load_alarms (ClientAlarms *ca,
 
580
             time_t start,
 
581
             time_t end)
580
582
{
581
583
        gchar *str_query, *iso_start, *iso_end;
582
584
        GError *error = NULL;
1609
1611
                tray_icon = gtk_status_icon_new ();
1610
1612
                gtk_status_icon_set_from_icon_name (
1611
1613
                        tray_icon, "appointment-soon");
1612
 
                g_signal_connect (G_OBJECT (tray_icon), "activate",
1613
 
                                  G_CALLBACK (icon_activated), NULL);
1614
 
                g_signal_connect (G_OBJECT (tray_icon), "popup-menu",
1615
 
                                  G_CALLBACK (popup_menu), NULL);
 
1614
                g_signal_connect (
 
1615
                        tray_icon, "activate",
 
1616
                        G_CALLBACK (icon_activated), NULL);
 
1617
                g_signal_connect (
 
1618
                        tray_icon, "popup-menu",
 
1619
                        G_CALLBACK (popup_menu), NULL);
1616
1620
        }
1617
1621
 
1618
1622
        current_zone = config_data_get_timezone ();
1661
1665
        g_free (time_str);
1662
1666
        g_free (str);
1663
1667
 
1664
 
        g_signal_connect (G_OBJECT (tray_data->view), "objects_removed",
1665
 
                          G_CALLBACK (on_dialog_objs_removed_cb), tray_data);
 
1668
        g_signal_connect (
 
1669
                tray_data->view, "objects_removed",
 
1670
                G_CALLBACK (on_dialog_objs_removed_cb), tray_data);
1666
1671
 
1667
1672
        /* FIXME: We should remove this check */
1668
1673
        if (!config_data_get_notify_with_tray ()) {
1864
1869
 
1865
1870
/* Performs notification of a procedure alarm */
1866
1871
static gboolean
1867
 
procedure_notification_dialog (const gchar *cmd, const gchar *url)
 
1872
procedure_notification_dialog (const gchar *cmd,
 
1873
                               const gchar *url)
1868
1874
{
1869
1875
        GtkWidget *container;
1870
1876
        GtkWidget *dialog;
2037
2043
}
2038
2044
 
2039
2045
static gboolean
2040
 
free_client_alarms_cb (gpointer key, gpointer value, gpointer user_data)
 
2046
free_client_alarms_cb (gpointer key,
 
2047
                       gpointer value,
 
2048
                       gpointer user_data)
2041
2049
{
2042
2050
        ClientAlarms *ca = value;
2043
2051
 
2101
2109
}
2102
2110
 
2103
2111
static gboolean
2104
 
compare_ids (gpointer a, gpointer b)
 
2112
compare_ids (gpointer a,
 
2113
             gpointer b)
2105
2114
{
2106
2115
        ECalComponentId *id, *id1;
2107
2116
 
2370
2379
}
2371
2380
 
2372
2381
static void
2373
 
update_qa (ECalComponentAlarms *alarms, QueuedAlarm *qa)
 
2382
update_qa (ECalComponentAlarms *alarms,
 
2383
           QueuedAlarm *qa)
2374
2384
{
2375
2385
        ECalComponentAlarmInstance *al_inst;
2376
2386
        GSList *instance_list;