Grab the focus when setting the cursor.

2000-06-20  Christopher James Lahey  <clahey@helixcode.com>

	* e-canvas.c: Grab the focus when setting the cursor.

svn path=/trunk/; revision=3659
This commit is contained in:
Christopher James Lahey
2000-06-21 03:04:43 +00:00
committed by Chris Lahey
parent 4f20138bfc
commit 798b2b01e6
3 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-canvas.c: Grab the focus when setting the cursor.
2000-06-20 Christopher James Lahey <clahey@helixcode.com>
* e-canvas.c, e-canvas.h: Built a system for doing selections

View File

@ -506,6 +506,8 @@ e_canvas_item_set_cursor (GnomeCanvasItem *item, gpointer id)
g_list_free(canvas->selection);
canvas->selection = NULL;
gnome_canvas_item_grab_focus(item);
info = g_new(ECanvasSelectionInfo, 1);
info->item = item;
@ -587,3 +589,13 @@ e_canvas_item_remove_selection (GnomeCanvasItem *item, gpointer id)
}
}

View File

@ -506,6 +506,8 @@ e_canvas_item_set_cursor (GnomeCanvasItem *item, gpointer id)
g_list_free(canvas->selection);
canvas->selection = NULL;
gnome_canvas_item_grab_focus(item);
info = g_new(ECanvasSelectionInfo, 1);
info->item = item;
@ -587,3 +589,13 @@ e_canvas_item_remove_selection (GnomeCanvasItem *item, gpointer id)
}
}