[glabels/glabels_2_2] Fixed focus behavior of view canvas
- From: Jim Evins <jimevins src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glabels/glabels_2_2] Fixed focus behavior of view canvas
- Date: Wed, 18 Nov 2009 14:18:33 +0000 (UTC)
commit 8f4713e9aec5e19ad382d6493119f6cea812ced4
Author: Jim Evins <evins snaught com>
Date: Wed Nov 18 09:16:14 2009 -0500
Fixed focus behavior of view canvas
Fixes bug #2899305. Don't just automatically steal focus when entering
canvas. Require a click to get focus back.
src/view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/view.c b/src/view.c
index f7ad185..ffe8c5d 100644
--- a/src/view.c
+++ b/src/view.c
@@ -3158,8 +3158,6 @@ static gboolean
enter_notify_event_cb (glView *view,
GdkEventCrossing *event)
{
- gtk_widget_grab_focus(GTK_WIDGET (view->canvas));
-
return FALSE;
}
@@ -3342,6 +3340,8 @@ button_press_event_cb (glView *view,
glViewObject *view_object;
glViewObjectHandle handle;
+ gtk_widget_grab_focus(GTK_WIDGET (view->canvas));
+
cr = gdk_cairo_create (GTK_LAYOUT (view->canvas)->bin_window);
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]