From: Jim Evins Date: Thu, 27 Nov 2003 02:08:14 +0000 (+0000) Subject: Make sure canvas will regain focus if clicked on. X-Git-Tag: glabels-2_3_0~539 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d331ca9bd594283549e9415d96d40d87d3302d5;p=glabels Make sure canvas will regain focus if clicked on. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@354 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels2/src/view.c b/glabels2/src/view.c index fe3f4dff..b05e7ca1 100644 --- a/glabels2/src/view.c +++ b/glabels2/src/view.c @@ -3353,6 +3353,7 @@ canvas_event_arrow_mode (GnomeCanvas *canvas, case GDK_BUTTON_PRESS: gl_debug (DEBUG_VIEW, "BUTTON_PRESS"); + gtk_widget_grab_focus (GTK_WIDGET(canvas)); switch (event->button.button) { case 1: gnome_canvas_window_to_world (canvas,