diff options
-rw-r--r-- | widgets/table/e-table.c | 5 | ||||
-rw-r--r-- | widgets/table/e-tree.c | 5 |
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) { |