]> git.sur5r.net Git - glabels/commitdiff
Make sure canvas will regain focus if clicked on.
authorJim Evins <evins@snaught.com>
Thu, 27 Nov 2003 02:08:14 +0000 (02:08 +0000)
committerJim Evins <evins@snaught.com>
Thu, 27 Nov 2003 02:08:14 +0000 (02:08 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@354 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/view.c

index fe3f4dff1b25e40a7f878974b29d6b889db51ec0..b05e7ca1a78c24c6b8c00caf2676713dd28bef41 100644 (file)
@@ -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,