aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2005-02-04 13:09:10 +0800
committerHarry Lu <haip@src.gnome.org>2005-02-04 13:09:10 +0800
commitaf868dc105fcc0675c901728477acc22d2fb4ccd (patch)
treed0fbaa7a1019a68f6ab2cf1829ad0e51f49a53c4
parentab13d05f6e1b47523f2fed817c1963f289cee2d0 (diff)
downloadgsoc2013-evolution-af868dc105fcc0675c901728477acc22d2fb4ccd.tar
gsoc2013-evolution-af868dc105fcc0675c901728477acc22d2fb4ccd.tar.gz
gsoc2013-evolution-af868dc105fcc0675c901728477acc22d2fb4ccd.tar.bz2
gsoc2013-evolution-af868dc105fcc0675c901728477acc22d2fb4ccd.tar.lz
gsoc2013-evolution-af868dc105fcc0675c901728477acc22d2fb4ccd.tar.xz
gsoc2013-evolution-af868dc105fcc0675c901728477acc22d2fb4ccd.tar.zst
gsoc2013-evolution-af868dc105fcc0675c901728477acc22d2fb4ccd.zip
Fix for 72088.
2005-02-02 Harry Lu <harry.lu@sun.com> Fix for 72088. * calendar/ea-calendar.c: (gnome_calendar_a11y_init): force loading some types so that we can use them. svn path=/trunk/; revision=28704
-rw-r--r--a11y/ChangeLog7
-rw-r--r--a11y/calendar/ea-calendar.c14
2 files changed, 20 insertions, 1 deletions
diff --git a/a11y/ChangeLog b/a11y/ChangeLog
index f905c5a39a..80033dff9e 100644
--- a/a11y/ChangeLog
+++ b/a11y/ChangeLog
@@ -1,3 +1,10 @@
+2005-02-02 Harry Lu <harry.lu@sun.com>
+
+ Fix for 72088.
+
+ * calendar/ea-calendar.c: (gnome_calendar_a11y_init): force
+ loading some types so that we can use them.
+
2005-02-01 Harry Lu <harry.lu@sun.com>
Fix for 71924, 71926, 71932
diff --git a/a11y/calendar/ea-calendar.c b/a11y/calendar/ea-calendar.c
index f2510bbcf9..614f81e4c8 100644
--- a/a11y/calendar/ea-calendar.c
+++ b/a11y/calendar/ea-calendar.c
@@ -50,13 +50,25 @@ static gboolean ea_calendar_focus_watcher (GSignalInvocationHint *ihint,
const GValue *param_values,
gpointer data);
+static gpointer e_text_type, pixbuf_type, e_day_view_type, e_week_view_type;
+static gpointer e_day_view_main_item_type, e_week_view_main_item_type;
+
void
gnome_calendar_a11y_init (void)
{
- EA_SET_FACTORY (gnome_calendar_get_type(), ea_gnome_calendar);
/* we only add focus watcher when accessibility is enabled
*/
if (atk_get_root ()) {
+ EA_SET_FACTORY (gnome_calendar_get_type(), ea_gnome_calendar);
+
+ /* force loading some types */
+ e_text_type = g_type_class_ref (E_TYPE_TEXT);
+ pixbuf_type = g_type_class_ref (GNOME_TYPE_CANVAS_PIXBUF);
+ e_day_view_type = g_type_class_ref (e_day_view_get_type ());
+ e_week_view_type = g_type_class_ref (e_week_view_get_type ());
+ e_day_view_main_item_type = g_type_class_ref (e_day_view_main_item_get_type ());
+ e_week_view_main_item_type = g_type_class_ref (e_week_view_main_item_get_type ());
+
g_signal_add_emission_hook (g_signal_lookup ("event", E_TYPE_TEXT),
0, ea_calendar_focus_watcher,
NULL, (GDestroyNotify) NULL);