[evolution-patches] patch for gal accessibility (#50844)



Hi Mike
This is a patch for gal accessibility.
It fixed bug 50844
A11y implementation for ECellPopup in e-table
Thanks

? GPATH
? GRTAGS
? GSYMS
? GTAGS
? Makefile
? Makefile.in
? aclocal.m4
? autom4te.cache
? config.guess
? config.h
? config.h.in
? config.log
? config.status
? config.sub
? configure
? gal-2.0.pc
? gal.spec
? iconv-detect.h
? intltool-extract
? intltool-extract.in
? intltool-merge
? intltool-merge.in
? intltool-update
? intltool-update.in
? libtool
? ltmain.sh
? stamp-h1
? stamp.h
? art/Makefile
? art/Makefile.in
? docs/Makefile
? docs/Makefile.in
? docs/gal-api.html
? gal/.deps
? gal/.libs
? gal/Makefile
? gal/Makefile.in
? gal/bogus_automake_hack.lo
? gal/libgal-2.0.la
? gal/a11y/.deps
? gal/a11y/.libs
? gal/a11y/Makefile
? gal/a11y/Makefile.in
? gal/a11y/gal-a11y-util.lo
? gal/a11y/libgal-a11y-2.0.la
? gal/a11y/e-table/.deps
? gal/a11y/e-table/.libs
? gal/a11y/e-table/Makefile
? gal/a11y/e-table/Makefile.in
? gal/a11y/e-table/gal-a11y-e-cell-combo.c
? gal/a11y/e-table/gal-a11y-e-cell-combo.h
? gal/a11y/e-table/gal-a11y-e-cell-popup.lo
? gal/a11y/e-table/gal-a11y-e-cell-registry.lo
? gal/a11y/e-table/gal-a11y-e-cell-text.lo
? gal/a11y/e-table/gal-a11y-e-cell-toggle.lo
? gal/a11y/e-table/gal-a11y-e-cell-tree.lo
? gal/a11y/e-table/gal-a11y-e-cell.lo
? gal/a11y/e-table/gal-a11y-e-table-factory.lo
? gal/a11y/e-table/gal-a11y-e-table-item-factory.lo
? gal/a11y/e-table/gal-a11y-e-table-item.lo
? gal/a11y/e-table/gal-a11y-e-table.lo
? gal/a11y/e-table/gal-a11y-e-tree-factory.lo
? gal/a11y/e-table/gal-a11y-e-tree.lo
? gal/a11y/e-table/libgal-a11y-etable.la
? gal/a11y/e-text/.deps
? gal/a11y/e-text/.libs
? gal/a11y/e-text/Makefile
? gal/a11y/e-text/Makefile.in
? gal/a11y/e-text/gal-a11y-e-text-factory.lo
? gal/a11y/e-text/gal-a11y-e-text.lo
? gal/a11y/e-text/libgal-a11y-etext.la
? gal/e-table/.deps
? gal/e-table/.libs
? gal/e-table/Makefile
? gal/e-table/Makefile.in
? gal/e-table/e-cell-checkbox.lo
? gal/e-table/e-cell-combo.lo
? gal/e-table/e-cell-date.lo
? gal/e-table/e-cell-float.lo
? gal/e-table/e-cell-number.lo
? gal/e-table/e-cell-pixbuf.lo
? gal/e-table/e-cell-popup.lo
? gal/e-table/e-cell-progress.lo
? gal/e-table/e-cell-size.lo
? gal/e-table/e-cell-spin-button.lo
? gal/e-table/e-cell-text.lo
? gal/e-table/e-cell-toggle.lo
? gal/e-table/e-cell-tree.lo
? gal/e-table/e-cell-vbox.lo
? gal/e-table/e-cell.lo
? gal/e-table/e-table-click-to-add.lo
? gal/e-table/e-table-col.lo
? gal/e-table/e-table-column-specification.lo
? gal/e-table/e-table-config.lo
? gal/e-table/e-table-extras.lo
? gal/e-table/e-table-field-chooser-dialog.lo
? gal/e-table/e-table-field-chooser-item.lo
? gal/e-table/e-table-field-chooser.gladep
? gal/e-table/e-table-field-chooser.lo
? gal/e-table/e-table-group-container.lo
? gal/e-table/e-table-group-leaf.lo
? gal/e-table/e-table-group.lo
? gal/e-table/e-table-header-item.lo
? gal/e-table/e-table-header-utils.lo
? gal/e-table/e-table-header.lo
? gal/e-table/e-table-item.lo
? gal/e-table/e-table-memory-callbacks.lo
? gal/e-table/e-table-memory-store.lo
? gal/e-table/e-table-memory.lo
? gal/e-table/e-table-model.lo
? gal/e-table/e-table-one.lo
? gal/e-table/e-table-scrolled.lo
? gal/e-table/e-table-search.lo
? gal/e-table/e-table-selection-model.lo
? gal/e-table/e-table-simple.lo
? gal/e-table/e-table-sort-info.lo
? gal/e-table/e-table-sorted-variable.lo
? gal/e-table/e-table-sorted.lo
? gal/e-table/e-table-sorter.lo
? gal/e-table/e-table-sorting-utils.lo
? gal/e-table/e-table-specification.lo
? gal/e-table/e-table-state.lo
? gal/e-table/e-table-subset-variable.lo
? gal/e-table/e-table-subset.lo
? gal/e-table/e-table-utils.lo
? gal/e-table/e-table-without.lo
? gal/e-table/e-table.lo
? gal/e-table/e-tree-memory-callbacks.lo
? gal/e-table/e-tree-memory.lo
? gal/e-table/e-tree-model.lo
? gal/e-table/e-tree-scrolled.lo
? gal/e-table/e-tree-selection-model.lo
? gal/e-table/e-tree-sorted.lo
? gal/e-table/e-tree-table-adapter.lo
? gal/e-table/e-tree.lo
? gal/e-table/libetable.la
? gal/e-text/.deps
? gal/e-text/.libs
? gal/e-text/Makefile
? gal/e-text/Makefile.in
? gal/e-text/e-completion-callbacks.lo
? gal/e-text/e-completion-match.lo
? gal/e-text/e-completion-view.lo
? gal/e-text/e-completion.lo
? gal/e-text/e-entry.lo
? gal/e-text/e-table-text-model.lo
? gal/e-text/e-text-model-repos.lo
? gal/e-text/e-text-model-uri.lo
? gal/e-text/e-text-model.lo
? gal/e-text/e-text.lo
? gal/e-text/libetext.la
? gal/menus/.deps
? gal/menus/.libs
? gal/menus/Makefile
? gal/menus/Makefile.in
? gal/menus/gal-define-views-dialog.lo
? gal/menus/gal-define-views-model.lo
? gal/menus/gal-view-collection.lo
? gal/menus/gal-view-etable.lo
? gal/menus/gal-view-factory-etable.lo
? gal/menus/gal-view-factory.lo
? gal/menus/gal-view-instance-save-as-dialog.lo
? gal/menus/gal-view-instance.lo
? gal/menus/gal-view-new-dialog.lo
? gal/menus/gal-view.lo
? gal/menus/libgalmenus.la
? gal/shortcut-bar/.deps
? gal/shortcut-bar/.libs
? gal/shortcut-bar/Makefile
? gal/shortcut-bar/Makefile.in
? gal/shortcut-bar/e-group-bar.lo
? gal/shortcut-bar/e-icon-bar-bg-item.lo
? gal/shortcut-bar/e-icon-bar.lo
? gal/shortcut-bar/e-shortcut-bar.lo
? gal/shortcut-bar/e-shortcut-model.lo
? gal/shortcut-bar/e-vscrolled-bar.lo
? gal/shortcut-bar/libshortcut-bar.la
? gal/util/.deps
? gal/util/.libs
? gal/util/Makefile
? gal/util/Makefile.in
? gal/util/e-bit-array.lo
? gal/util/e-cache.lo
? gal/util/e-iconv.lo
? gal/util/e-marshal.c
? gal/util/e-marshal.h
? gal/util/e-sorter-array.lo
? gal/util/e-sorter.lo
? gal/util/e-text-event-processor-emacs-like.lo
? gal/util/e-text-event-processor.lo
? gal/util/e-util.lo
? gal/util/e-xml-utils.lo
? gal/util/libutil.la
? gal/widgets/.deps
? gal/widgets/.libs
? gal/widgets/Makefile
? gal/widgets/Makefile.in
? gal/widgets/color-group.lo
? gal/widgets/color-palette.lo
? gal/widgets/e-canvas-background.lo
? gal/widgets/e-canvas-utils.lo
? gal/widgets/e-canvas-vbox.lo
? gal/widgets/e-canvas.lo
? gal/widgets/e-categories-master-list-array.lo
? gal/widgets/e-categories-master-list-combo.lo
? gal/widgets/e-categories-master-list-dialog-model.lo
? gal/widgets/e-categories-master-list-dialog.lo
? gal/widgets/e-categories-master-list-option-menu.lo
? gal/widgets/e-categories-master-list.lo
? gal/widgets/e-categories.lo
? gal/widgets/e-colors.lo
? gal/widgets/e-cursors.lo
? gal/widgets/e-file-selection.lo
? gal/widgets/e-gui-utils.lo
? gal/widgets/e-hsv-utils.lo
? gal/widgets/e-option-menu.lo
? gal/widgets/e-popup-menu.lo
? gal/widgets/e-printable.lo
? gal/widgets/e-reflow-model.lo
? gal/widgets/e-reflow.lo
? gal/widgets/e-selection-model-array.lo
? gal/widgets/e-selection-model-simple.lo
? gal/widgets/e-selection-model.lo
? gal/widgets/e-unicode.lo
? gal/widgets/gtk-combo-box.lo
? gal/widgets/gtk-combo-stack.lo
? gal/widgets/gtk-combo-text.lo
? gal/widgets/libwidgets.la
? gal/widgets/test-color
? gal/widgets/widget-color-combo.lo
? gal/widgets/widget-pixmap-combo.lo
? po/Makefile
? po/Makefile.in
? po/Makefile.in.in
? po/POTFILES
? po/am.gmo
? po/am.mo
? po/az.gmo
? po/az.mo
? po/be.gmo
? po/be.mo
? po/ca.gmo
? po/ca.mo
? po/cs.gmo
? po/cs.mo
? po/da.gmo
? po/da.mo
? po/de.gmo
? po/de.mo
? po/el.gmo
? po/el.mo
? po/en_GB.gmo
? po/en_GB.mo
? po/es.gmo
? po/es.mo
? po/eu.gmo
? po/eu.mo
? po/fi.gmo
? po/fi.mo
? po/fr.gmo
? po/fr.mo
? po/gl.gmo
? po/gl.mo
? po/hu.gmo
? po/hu.mo
? po/it.gmo
? po/it.mo
? po/ja.gmo
? po/ja.mo
? po/ko.gmo
? po/ko.mo
? po/lt.gmo
? po/lt.mo
? po/lv.gmo
? po/lv.mo
? po/ms.gmo
? po/ms.mo
? po/nl.gmo
? po/nl.mo
? po/nn.gmo
? po/nn.mo
? po/no.gmo
? po/no.mo
? po/pl.gmo
? po/pl.mo
? po/pt.gmo
? po/pt.mo
? po/pt_BR.gmo
? po/pt_BR.mo
? po/ro.gmo
? po/ro.mo
? po/ru.gmo
? po/ru.mo
? po/sk.gmo
? po/sk.mo
? po/sl.gmo
? po/sl.mo
? po/sr.gmo
? po/sr.mo
? po/sr Latn gmo
? po/sr Latn mo
? po/sv.gmo
? po/sv.mo
? po/ta.gmo
? po/ta.mo
? po/tr.gmo
? po/tr.mo
? po/uk.gmo
? po/uk.mo
? po/vi.gmo
? po/vi.mo
? po/zh_CN.gmo
? po/zh_CN.mo
? po/zh_HK.gmo
? po/zh_HK.mo
? po/zh_TW.gmo
? po/zh_TW.mo
? tests/.deps
? tests/.libs
? tests/Makefile
? tests/Makefile.in
? tests/test-completion
? tests/test-define-views
? tests/test-shortcut-bar
? tests/test-table-1
? tests/test-text
? tests/test-tree-1
? tests/test-tree-3
Index: ChangeLog
===================================================================
RCS file: /export/src/cvs/gal/ChangeLog,v
retrieving revision 1.33
diff -u -b -B -r1.33 ChangeLog
--- ChangeLog	2003/12/03 15:53:53	1.33
+++ ChangeLog	2003/12/05 13:22:39
@@ -1,6 +1,13 @@
+2003-12-05  Andrew Wu <yang wu sun com>
+	Fixed #50844
+
+	* gal/a11y/e-table/gal-a11y-e-cell-popup.c:
+	* gal/a11y/e-table/gal-a11y-e-cell-popup.h:
+	a11y impl. for e-cell-popup.
+	
 2003-12-03  Andrew Wu <yang wu sun com>
 
-	Fixes #51649
+	Fixed #51649
 
 	* gal/e-table/e-table-field-chooser-item.c:
 	(etfci_realize): Create GC for display focus rectangle.
Index: gal/a11y/e-table/Makefile.am
===================================================================
RCS file: /export/src/cvs/gal/gal/a11y/e-table/Makefile.am,v
retrieving revision 1.4
diff -u -b -B -r1.4 Makefile.am
--- gal/a11y/e-table/Makefile.am	2003/11/12 05:56:43	1.4
+++ gal/a11y/e-table/Makefile.am	2003/12/05 13:22:39
@@ -17,6 +17,7 @@
 	gal-a11y-e-cell-text.c			\
 	gal-a11y-e-cell-tree.c			\
 	gal-a11y-e-cell-toggle.c		\
+	gal-a11y-e-cell-popup.c			\
 	gal-a11y-e-cell-registry.c		\
 	gal-a11y-e-table.c			\
 	gal-a11y-e-table-item.c			\
@@ -32,6 +33,7 @@
 	gal-a11y-e-cell-text.h			\
 	gal-a11y-e-cell-tree.h			\
 	gal-a11y-e-cell-toggle.h		\
+	gal-a11y-e-cell-popup.h			\
 	gal-a11y-e-cell-registry.h		\
 	gal-a11y-e-table.h			\
 	gal-a11y-e-table-item.h			\
Index: gal/a11y/e-table/gal-a11y-e-cell-popup.c
===================================================================
RCS file: gal-a11y-e-cell-popup.c
diff -N gal-a11y-e-cell-popup.c
--- /dev/null	Fri Dec  5 21:22:40 2003
+++ gal-a11y-e-cell-popup.c	Fri Dec  5 21:22:39 2003
@@ -0,0 +1,143 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* vim:expandtab:shiftwidth=8:tabstop=8:
+ */
+/* Evolution Accessibility: gal-a11y-e-cell-popup.h
+ *
+ * Copyright (C) 2003 Ximian, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * Author: Yang Wu <yang wu sun com> Sun Microsystem Inc., 2003
+ *
+ */
+
+#include <config.h>
+#include <gal/e-table/e-cell-popup.h>
+#include "gal-a11y-e-cell-popup.h"
+#include "gal-a11y-util.h"
+#include <atk/atkobject.h>
+#include <gdk/gdkkeysyms.h>
+#include <gtk/gtkwidget.h>
+
+static AtkObjectClass *parent_class = NULL;
+#define PARENT_TYPE (gal_a11y_e_cell_get_type ())
+
+static void gal_a11y_e_cell_popup_class_init (GalA11yECellPopupClass *klass);
+static void popup_cell_action (GalA11yECell *cell);
+
+/**
+ * gal_a11y_e_cell_popup_get_type:
+ * @void: 
+ * 
+ * Registers the &GalA11yECellPopup class if necessary, and returns the type ID
+ * associated to it.
+ * 
+ * Return value: The type ID of the &GalA11yECellPopup class.
+ **/
+GType
+gal_a11y_e_cell_popup_get_type (void)
+{
+	static GType type = 0;
+
+	if (!type) {
+		GTypeInfo info = {
+			sizeof (GalA11yECellPopupClass),
+			(GBaseInitFunc) NULL,
+			(GBaseFinalizeFunc) NULL,
+			(GClassInitFunc) gal_a11y_e_cell_popup_class_init,
+			(GClassFinalizeFunc) NULL,
+			NULL, /* class_data */
+			sizeof (GalA11yECellPopup),
+			0,
+			(GInstanceInitFunc) NULL,
+			NULL /* value_cell_popup */
+		};
+
+		type = g_type_register_static (PARENT_TYPE, "GalA11yECellPopup", &info, 0);
+		gal_a11y_e_cell_type_add_action_interface (type);
+	}
+
+	return type;
+}
+
+static void
+gal_a11y_e_cell_popup_class_init (GalA11yECellPopupClass *klass)
+{
+	AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
+
+	parent_class = g_type_class_ref (PARENT_TYPE);
+}
+
+AtkObject *
+gal_a11y_e_cell_popup_new (ETableItem *item,
+			  ECellView  *cell_view,
+			  AtkObject  *parent,
+			  int         model_col,
+			  int         view_col,
+			  int         row)
+{
+	AtkObject *a11y;
+	GalA11yECell *cell;
+ 	ECellPopup *popupcell;
+
+	g_return_val_if_fail (a11y != NULL, NULL);
+	popupcell=  E_CELL_POPUP(cell_view->ecell);
+	ECellView* child_view =popupcell->popup_cell_view->child_view;
+ 	if (child_view->ecell) {
+		a11y = gal_a11y_e_cell_registry_get_object (NULL,
+							    item,
+							    child_view,
+							    parent,
+							    model_col,
+							    view_col,
+							    row);
+	} else {
+		a11y = g_object_new (GAL_A11Y_TYPE_E_CELL_POPUP, NULL);
+		gal_a11y_e_cell_construct (a11y,
+					   item,
+					   cell_view,
+					   parent,
+					   model_col,
+					   view_col,
+					   row);
+	       	}
+	g_return_val_if_fail (a11y != NULL, NULL);
+	cell = GAL_A11Y_E_CELL(a11y);
+	gal_a11y_e_cell_add_action (cell, 
+				    "popup",	       /* action name*/
+				    "popup a child", /* action description */
+				    "<Alt>Down",              /* action keybinding */
+				    popup_cell_action);
+
+	a11y->role  = ATK_ROLE_TABLE_CELL;
+	return a11y;
+}
+
+static void
+popup_cell_action (GalA11yECell *cell)
+{
+	ECellPopup *ecp;
+	gint finished;
+	GdkEvent event;
+
+	event.key.type = GDK_KEY_PRESS; 
+	event.key.window = GTK_LAYOUT(GNOME_CANVAS_ITEM(cell->item)->canvas)->bin_window;;
+	event.key.send_event = TRUE;
+	event.key.time = GDK_CURRENT_TIME;
+	event.key.state = GDK_MOD1_MASK;
+	event.key.keyval = GDK_Down;
+  
+	g_signal_emit_by_name (cell->item, "event", &event, &finished);
+}
Index: gal/a11y/e-table/gal-a11y-e-cell-popup.h
===================================================================
RCS file: gal-a11y-e-cell-popup.h
diff -N gal-a11y-e-cell-popup.h
--- /dev/null	Fri Dec  5 21:22:40 2003
+++ gal-a11y-e-cell-popup.h	Fri Dec  5 21:22:39 2003
@@ -0,0 +1,64 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* vim:expandtab:shiftwidth=8:tabstop=8:
+ */
+/* Evolution Accessibility: gal-a11y-e-cell-popup.h
+ *
+ * Copyright (C) 2003 Ximian, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * Author: Yang Wu <yang wu sun com> Sun Microsystem Inc., 2003
+ *
+ */
+
+#ifndef __GAL_A11Y_E_CELL_POPUP_H__
+#define __GAL_A11Y_E_CELL_POPUP_H__
+
+#include <glib-object.h>
+#include <gal/e-table/e-table-item.h>
+#include <a11y/e-table/gal-a11y-e-cell.h>
+#include <atk/atkgobjectaccessible.h>
+
+#define GAL_A11Y_TYPE_E_CELL_POPUP            (gal_a11y_e_cell_popup_get_type ())
+#define GAL_A11Y_E_CELL_POPUP(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GAL_A11Y_TYPE_E_CELL_POPUP, GalA11yECellPopup))
+#define GAL_A11Y_E_CELL_POPUP_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GAL_A11Y_TYPE_E_CELL_POPUP, GalA11yECellPopupClass))
+#define GAL_A11Y_IS_E_CELL_POPUP(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GAL_A11Y_TYPE_E_CELL_POPUP))
+#define GAL_A11Y_IS_E_CELL_POPUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GAL_A11Y_TYPE_E_CELL_POPUP))
+
+typedef struct _GalA11yECellPopup GalA11yECellPopup;
+typedef struct _GalA11yECellPopupClass GalA11yECellPopupClass;
+
+/* This struct should actually be larger as this isn't what we derive from.
+ * The GalA11yECellPopupPrivate comes right after the parent class structure.
+ **/
+struct _GalA11yECellPopup {
+	GalA11yECell object;
+};
+
+struct _GalA11yECellPopupClass {
+	GalA11yECellClass parent_class;
+};
+
+
+/* Standard Glib function */
+GType      gal_a11y_e_cell_popup_get_type   (void);
+AtkObject *gal_a11y_e_cell_popup_new        (ETableItem *item,
+					    ECellView  *cell_view,
+					    AtkObject  *parent,
+					    int         model_col,
+					    int         view_col,
+					    int         row);
+
+#endif /* ! __GAL_A11Y_E_CELL_POPUP_H__ */
Index: gal/e-table/e-cell-popup.c
===================================================================
RCS file: /export/src/cvs/gal/gal/e-table/e-cell-popup.c,v
retrieving revision 1.1.1.1
diff -u -b -B -r1.1.1.1 e-cell-popup.c
--- gal/e-table/e-cell-popup.c	2003/09/26 06:37:13	1.1.1.1
+++ gal/e-table/e-cell-popup.c	2003/12/05 13:22:39
@@ -33,8 +33,8 @@
 #include "gal/util/e-util.h"
 #include "e-table-item.h"
 #include "e-cell-popup.h"
+#include "gal/a11y/e-table/gal-a11y-e-cell-popup.h"
 
-
 #define E_CELL_POPUP_ARROW_WIDTH	16
 #define E_CELL_POPUP_ARROW_XPAD		3
 #define E_CELL_POPUP_ARROW_YPAD		3
@@ -140,6 +140,9 @@
 	ecc->get_bg_color = ecp_get_bg_color;
 
 	parent_class = g_type_class_ref (E_CELL_TYPE);
+	gal_a11y_e_cell_registry_add_cell_type (NULL,
+                                                E_CELL_POPUP_TYPE,
+                                                gal_a11y_e_cell_popup_new);
 }
 
 
Index: gal/e-table/e-table-item.c
===================================================================
RCS file: /export/src/cvs/gal/gal/e-table/e-table-item.c,v
retrieving revision 1.7
diff -u -b -B -r1.7 e-table-item.c
--- gal/e-table/e-table-item.c	2003/12/03 15:53:04	1.7
+++ gal/e-table/e-table-item.c	2003/12/05 13:22:39
@@ -2635,7 +2635,7 @@
 			if ((e->key.state & GDK_MOD1_MASK)
 			    && ((e->key.keyval == GDK_Down ) || (e->key.keyval == GDK_KP_Down))) {
 				gint view_col = model_to_view_col(eti, cursor_col);
-				if (eti_e_cell_event (eti, eti->cell_views [view_col], e, ((GdkEventKey *)e)->time, cursor_col, view_col, cursor_row,  E_CELL_CURSOR))
+				if (eti_e_cell_event (eti, eti->cell_views [view_col], e, ((GdkEventKey *)e)->time, cursor_col, view_col, model_to_view_row(eti, cursor_row),  E_CELL_CURSOR))
 					return TRUE;
 			} else
 			return_val = e_selection_model_key_press(E_SELECTION_MODEL (eti->selection), (GdkEventKey *) e);


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