gdk_cairo_crate failed

This commit is contained in:
Kolan Sh 2012-08-16 16:21:18 +04:00
parent 28f3c96ce4
commit 157f4a73cd
2 changed files with 2 additions and 1 deletions

View File

@ -67,6 +67,7 @@ gboolean drawingarea_draw_event_cb(GtkWidget *widget, GdkEventExpose *event, gpo
{ {
cairo_t *cr; cairo_t *cr;
return TRUE;
cr = gdk_cairo_create (widget->window); cr = gdk_cairo_create (widget->window);
cairo_set_line_width (cr, 7); cairo_set_line_width (cr, 7);
cairo_set_source_rgb (cr, 0, 0, 0); cairo_set_source_rgb (cr, 0, 0, 0);

View File

@ -313,7 +313,7 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="events">GDK_EXPOSURE_MASK | GDK_STRUCTURE_MASK</property> <property name="events">GDK_EXPOSURE_MASK | GDK_STRUCTURE_MASK</property>
<property name="halign">start</property> <property name="halign">start</property>
<signal name="draw" handler="drawingarea_draw_event_cp" swapped="no"/> <signal name="draw" handler="drawingarea_draw_event_cb" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">True</property> <property name="expand">True</property>