Removed that rather kludgy idle callback
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 9 Dec 2008 01:33:09 +0000 (10:33 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 9 Dec 2008 01:33:09 +0000 (10:33 +0900)
lib/gtksheet/gtksheet.c

index 92dda55c0f1892b7de2dc7136b9c4438f11da922..246e2d77d8f87753e0af674d85eebea671c5d3c7 100644 (file)
@@ -3116,15 +3116,19 @@ gtk_sheet_expose (GtkWidget *widget,
            draw_xor_rectangle (sheet, sheet->drag_range);
        }
 
+    }
+
+  (* GTK_WIDGET_CLASS (parent_class)->expose_event) (widget, event);
+
+  if (event->window == sheet->sheet_window)
+    {
       if ((!GTK_SHEET_IN_XDRAG (sheet)) && (!GTK_SHEET_IN_YDRAG (sheet)))
        {
          if (sheet->state == GTK_SHEET_NORMAL)
-           g_idle_add (gtk_sheet_draw_active_cell, sheet);
+           gtk_sheet_draw_active_cell (sheet);
        }
     }
 
-  (* GTK_WIDGET_CLASS (parent_class)->expose_event) (widget, event);
-
   return FALSE;
 }