aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-08-14 16:03:25 +0800
committerChris Lahey <clahey@src.gnome.org>2001-08-14 16:03:25 +0800
commit6d8437d4a9a80eaa0b33911832b29a823fa5a5b7 (patch)
treeed0908d61a12eb96c3b27c4f7e24bf1cd9fbfbcc
parent141634ed801e5095f12b870ee58cf48b4d47d0ec (diff)
downloadgsoc2013-evolution-6d8437d4a9a80eaa0b33911832b29a823fa5a5b7.tar
gsoc2013-evolution-6d8437d4a9a80eaa0b33911832b29a823fa5a5b7.tar.gz
gsoc2013-evolution-6d8437d4a9a80eaa0b33911832b29a823fa5a5b7.tar.bz2
gsoc2013-evolution-6d8437d4a9a80eaa0b33911832b29a823fa5a5b7.tar.lz
gsoc2013-evolution-6d8437d4a9a80eaa0b33911832b29a823fa5a5b7.tar.xz
gsoc2013-evolution-6d8437d4a9a80eaa0b33911832b29a823fa5a5b7.tar.zst
gsoc2013-evolution-6d8437d4a9a80eaa0b33911832b29a823fa5a5b7.zip
Handle GDK_KP_Page_Up, GDK_KP_Page_Down, GDK_KP_Right, and GDK_KP_Left
2001-08-14 Christopher James Lahey <clahey@ximian.com> * e-table.c (group_key_press), e-tree.c (item_key_press): Handle GDK_KP_Page_Up, GDK_KP_Page_Down, GDK_KP_Right, and GDK_KP_Left here. svn path=/trunk/; revision=11996
-rw-r--r--widgets/table/e-table.c5
-rw-r--r--widgets/table/e-tree.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index bde2f990bc..d97936406c 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -495,6 +495,7 @@ group_key_press (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et
switch (key->keyval) {
case GDK_Page_Down:
+ case GDK_KP_Page_Down:
vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (et->table_canvas));
y = CLAMP(vadj->value + (2 * vadj->page_size - 50), 0, vadj->upper);
y -= vadj->value;
@@ -505,6 +506,7 @@ group_key_press (ETableGroup *etg, int row, int col, GdkEvent *event, ETable *et
return_val = 1;
break;
case GDK_Page_Up:
+ case GDK_KP_Page_Up:
vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (et->table_canvas));
y = CLAMP(vadj->value - (vadj->page_size - 50), 0, vadj->upper);
y -= vadj->value;
@@ -2047,8 +2049,6 @@ et_drag_motion(GtkWidget *widget,
{
gboolean ret_val;
- g_print ("x=%d, y=%d\n", x, y);
-
et->last_drop_x = x;
et->last_drop_y = y;
et->last_drop_time = time;
@@ -2209,7 +2209,6 @@ e_table_drag_source_event_cb (GtkWidget *widget,
site->actions,
i, event);
-
info = g_dataset_get_data (context, "gtk-info");
if (!info->icon_window) {
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index 753188a831..1789b0d90a 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -567,6 +567,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et)
switch (key->keyval) {
case GDK_Page_Down:
+ case GDK_KP_Page_Down:
vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (et->priv->table_canvas));
y = CLAMP(vadj->value + (2 * vadj->page_size - 50), 0, vadj->upper);
y -= vadj->value;
@@ -577,6 +578,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et)
return_val = 1;
break;
case GDK_Page_Up:
+ case GDK_KP_Page_Up:
vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (et->priv->table_canvas));
y = CLAMP(vadj->value - (vadj->page_size - 50), 0, vadj->upper);
y -= vadj->value;
@@ -588,6 +590,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et)
break;
case '=':
case GDK_Right:
+ case GDK_KP_Right:
if (row != -1) {
path = e_tree_table_adapter_node_at_row(et->priv->etta, row);
if (path)
@@ -597,6 +600,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et)
break;
case '-':
case GDK_Left:
+ case GDK_KP_Left:
if (row != -1) {
path = e_tree_table_adapter_node_at_row(et->priv->etta, row);
if (path)
@@ -2346,7 +2350,6 @@ e_tree_drag_source_event_cb (GtkWidget *widget,
site->actions,
i, event);
-
info = g_dataset_get_data (context, "gtk-info");
if (!info->icon_window) {