[evolution-patches] seek review for bug 47780: atk object for e-table should be a build-in part with e-table



Hi,  Mike
  
  This patch is not big. It does two things:
    1) adding  the gal-a11y-e-table*  into libgal-a11y-2.0 library
    2) registering  the gal-a11y-e-table for e-table when first e-table
is created.
  
 Please review it. Thank you very much.

Gilbert

Index: gal/a11y/Makefile.am
===================================================================
RCS file: /cvs/gnome/gal/gal/a11y/Makefile.am,v
retrieving revision 1.5
diff -u -r1.5 Makefile.am
--- gal/a11y/Makefile.am	5 Aug 2003 06:29:34 -0000	1.5
+++ gal/a11y/Makefile.am	22 Aug 2003 11:34:45 -0000
@@ -32,4 +32,5 @@
 
 libgal_a11y_2_0_la_LIBADD =		\
 	e-text/libgal-a11y-etext.la	\
+	e-table/libgal-a11y-etable.la	\
 	$(EXTRA_GNOME_LIBS)
Index: gal/e-table/e-table.c
===================================================================
RCS file: /cvs/gnome/gal/gal/e-table/e-table.c,v
retrieving revision 1.225
diff -u -r1.225 e-table.c
--- gal/e-table/e-table.c	1 Jul 2003 13:16:43 -0000	1.225
+++ gal/e-table/e-table.c	22 Aug 2003 11:34:59 -0000
@@ -55,6 +55,9 @@
 
 #include "e-table-utils.h"
 
+#include <atk/atk.h>
+#include "gal/a11y/e-table/gal-a11y-e-table-factory.h"
+
 #define COLUMN_HEADER_HEIGHT 16
 
 #define PARENT_TYPE gtk_table_get_type ()
@@ -3259,6 +3262,11 @@
 							      /*_( */"XXX blurb" /*)*/,
 							      E_TABLE_MODEL_TYPE,
 							      G_PARAM_READABLE));
+
+	atk_registry_set_factory_type (atk_get_default_registry (),
+				       E_TABLE_TYPE,
+				       gal_a11y_e_table_factory_get_type ());
+
 }
 
 E_MAKE_TYPE(e_table, "ETable", ETable, e_table_class_init, e_table_init, PARENT_TYPE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]