gtk_compass_expose(GtkWidget *widget, GdkEventExpose *event)
{
GtkCompass *compass;
+
g_return_val_if_fail(GTK_IS_COMPASS(widget), FALSE);
g_return_val_if_fail(event != NULL, FALSE);
g_return_if_fail(GTK_IS_COMPASS(widget));
compass=GTK_COMPASS(widget);
-gtk_compass_paint(compass);
+gtk_widget_queue_draw_area(widget, 0, 0, compass->width, compass->height);
}
void
compass->way_valid=valid;
compass->way_heading=heading;
-gtk_compass_paint(compass);
+gtk_widget_queue_draw_area(widget, 0, 0, compass->width, compass->height);
}
void
compass->dest_heading=heading;
compass=GTK_COMPASS(widget);
-gtk_compass_paint(compass);
+gtk_widget_queue_draw_area(widget, 0, 0, compass->width, compass->height);
}