diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-08-14 16:03:25 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-08-14 16:03:25 +0800 |
commit | 6d8437d4a9a80eaa0b33911832b29a823fa5a5b7 (patch) | |
tree | ed0908d61a12eb96c3b27c4f7e24bf1cd9fbfbcc /widgets/table/e-table.c | |
parent | 141634ed801e5095f12b870ee58cf48b4d47d0ec (diff) | |
download | gsoc2013-evolution-6d8437d4a9a80eaa0b33911832b29a823fa5a5b7.tar.gz 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
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r-- | widgets/table/e-table.c | 5 |
1 files changed, 2 insertions, 3 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) { |