aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-canvas.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-canvas.c')
-rw-r--r--e-util/e-canvas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/e-util/e-canvas.c b/e-util/e-canvas.c
index ad0819e3dd..8ca7d0f9b1 100644
--- a/e-util/e-canvas.c
+++ b/e-util/e-canvas.c
@@ -313,6 +313,8 @@ e_canvas_focus_in (GtkWidget *widget, GdkEventFocus *event)
canvas = GNOME_CANVAS (widget);
+ GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS);
+
if (canvas->focused_item)
return emit_event (canvas, (GdkEvent *) event);
else
@@ -327,6 +329,8 @@ e_canvas_focus_out (GtkWidget *widget, GdkEventFocus *event)
canvas = GNOME_CANVAS (widget);
+ GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS);
+
if (canvas->focused_item)
return emit_event (canvas, (GdkEvent *) event);
else