#ifdef HAVE_CONFIG_H # include #endif #include #include "callbacks.h" #include "interface.h" #include "support.h" gboolean on_drawingarea_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer user_data) { /* DrawingAreaの幅と高さ */ gint width = widget->allocation.width; gint height= widget->allocation.height; /* 黒いグラフィックスコンテキスト */ GdkGC *gc = widget->style->black_gc; gdk_draw_line(widget->window,gc,0,0,width,height); return FALSE; }