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

« back to all changes in this revision

Viewing changes to widgets/misc/ea-calendar-item.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-06-24 00:27:53 UTC
  • mfrom: (1.1.80 upstream)
  • Revision ID: james.westby@ubuntu.com-20110624002753-2vh1vjavlya7r103
Tags: 3.1.2-0ubuntu1
* New upstream release 3.1.2.
* debian/control: adjust Build-Depends to match new upstream requirements for
  the new release.
* debian/control: update evolution and evolution-dev Depends to require the
  right versions of e-d-s (>= 3.1, << 3.2), and drop libunique-3.0-dev.
* debian/control,
  debian/evolution.install: remove groupwise-features from the plugin list,
  it's now split out into a separate module.
* debian/patches/03_lpi.patch: refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 *
21
21
 */
22
22
 
 
23
#ifdef HAVE_CONFIG_H
 
24
#include <config.h>
 
25
#endif
 
26
 
23
27
#include <stdio.h>
24
28
#include <time.h>
25
29
#include <string.h>
26
30
#include <libgnomecanvas/gnome-canvas.h>
27
 
#include <glib.h>
28
31
#include <e-util/e-util.h>
29
32
#include <glib/gi18n.h>
30
33
#include <libedataserver/e-data-server-util.h>
38
41
static void ea_calendar_item_class_init (EaCalendarItemClass *klass);
39
42
static void ea_calendar_item_finalize (GObject *object);
40
43
 
41
 
static G_CONST_RETURN gchar * ea_calendar_item_get_name (AtkObject *accessible);
42
 
static G_CONST_RETURN gchar * ea_calendar_item_get_description (AtkObject *accessible);
 
44
static const gchar * ea_calendar_item_get_name (AtkObject *accessible);
 
45
static const gchar * ea_calendar_item_get_description (AtkObject *accessible);
43
46
static gint ea_calendar_item_get_n_children (AtkObject *accessible);
44
47
static AtkObject *ea_calendar_item_ref_child (AtkObject *accessible, gint index);
45
48
static AtkStateSet* ea_calendar_item_ref_state_set (AtkObject *accessible);
88
91
                                                     gint in_col);
89
92
static AtkObject* table_interface_get_caption (AtkTable *table);
90
93
 
91
 
static G_CONST_RETURN gchar *
 
94
static const gchar *
92
95
table_interface_get_column_description (AtkTable *table, gint in_col);
93
96
 
94
 
static G_CONST_RETURN gchar *
 
97
static const gchar *
95
98
table_interface_get_row_description (AtkTable *table, gint row);
96
99
 
97
100
static AtkObject* table_interface_get_summary (AtkTable *table);
263
266
#endif
264
267
}
265
268
 
266
 
static G_CONST_RETURN gchar *
 
269
static const gchar *
267
270
ea_calendar_item_get_name (AtkObject *accessible)
268
271
{
269
272
        GObject *g_obj;
338
341
        return accessible->name;
339
342
}
340
343
 
341
 
static G_CONST_RETURN gchar *
 
344
static const gchar *
342
345
ea_calendar_item_get_description (AtkObject *accessible)
343
346
{
344
347
        if (accessible->description)
439
442
 
440
443
#ifdef ACC_DEBUG
441
444
        g_print ("AccDebug: ea_calendar_item children[%d]=%p\n", index,
442
 
                 (gpointer)cell);
 
445
                 (gpointer) cell);
443
446
#endif
444
447
        return g_object_ref (atk_gobject_accessible_for_object (G_OBJECT (cell)));
445
448
}
792
795
        return NULL;
793
796
}
794
797
 
795
 
static G_CONST_RETURN gchar *
 
798
static const gchar *
796
799
table_interface_get_column_description (AtkTable *table, gint in_col)
797
800
{
798
801
        AtkGObjectAccessible *atk_gobj;
826
829
        return description;
827
830
}
828
831
 
829
 
static G_CONST_RETURN gchar *
 
832
static const gchar *
830
833
table_interface_get_row_description (AtkTable *table, gint row)
831
834
{
832
835
        AtkGObjectAccessible *atk_gobj;
1306
1309
        AtkStateSet *state_set, *old_state_set;
1307
1310
        AtkObject *old_cell;
1308
1311
 
1309
 
        old_cell = (AtkObject *)g_object_get_data (G_OBJECT(ea_calitem), "gail-focus-object");
 
1312
        old_cell = (AtkObject *) g_object_get_data (
 
1313
                G_OBJECT(ea_calitem), "gail-focus-object");
1310
1314
        if (old_cell && EA_IS_CALENDAR_CELL (old_cell)) {
1311
1315
                old_state_set = atk_object_ref_state_set (old_cell);
1312
1316
                atk_state_set_remove_state (old_state_set, ATK_STATE_FOCUSED);