438 |
g = (struct graphics *) NSA_GET_PTR (env, obj); |
g = (struct graphics *) NSA_GET_PTR (env, obj); |
439 |
|
|
440 |
gdk_threads_enter (); |
gdk_threads_enter (); |
441 |
|
|
442 |
|
if (!g) |
443 |
|
{ |
444 |
|
gdk_threads_leave (); |
445 |
|
return; |
446 |
|
} |
447 |
if (GDK_IS_WINDOW (g->drawable)) |
if (GDK_IS_WINDOW (g->drawable)) |
448 |
{ |
{ |
449 |
w.widget = &widget; |
w.widget = &widget; |
461 |
x + g->x_offset, y + g->y_offset, width, height); |
x + g->x_offset, y + g->y_offset, width, height); |
462 |
gdk_gc_set_foreground (g->gc, &(saved.foreground)); |
gdk_gc_set_foreground (g->gc, &(saved.foreground)); |
463 |
} |
} |
464 |
|
|
465 |
|
gdk_flush (); |
466 |
gdk_threads_leave (); |
gdk_threads_leave (); |
467 |
} |
} |
468 |
|
|