From 4d331ca9bd594283549e9415d96d40d87d3302d5 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Thu, 27 Nov 2003 02:08:14 +0000 Subject: [PATCH] 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 --- glabels2/src/view.c | 1 + 1 file changed, 1 insertion(+) 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, -- 2.39.5