From 4cd310350fc1bf8206c5ba0bbf59b1e22385876d Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 12 Jul 2000 01:16:42 +0000 Subject: Removed some debugging printfs. 2000-07-11 Christopher James Lahey * e-canvas-vbox.c: Removed some debugging printfs. * e-canvas.c (e_canvas_unrealize): Call parent unrealize method. svn path=/trunk/; revision=4102 --- e-util/e-canvas.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'e-util/e-canvas.c') diff --git a/e-util/e-canvas.c b/e-util/e-canvas.c index 4cb912283e..beb90a2e40 100644 --- a/e-util/e-canvas.c +++ b/e-util/e-canvas.c @@ -348,12 +348,15 @@ static gint e_canvas_focus_out (GtkWidget *widget, GdkEventFocus *event) { GnomeCanvas *canvas; + ECanvas *ecanvas; canvas = GNOME_CANVAS (widget); + ecanvas = E_CANVAS (widget); GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS); - gdk_im_end (); + if (ecanvas->ic) + gdk_im_end (); if (canvas->focused_item) return emit_event (canvas, (GdkEvent *) event); @@ -410,6 +413,8 @@ e_canvas_unrealize (GtkWidget *widget) gdk_ic_attr_destroy (ecanvas->ic_attr); ecanvas->ic_attr = NULL; } + if (GTK_WIDGET_CLASS (parent_class)->unrealize) + (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget); } static void -- cgit