gdk_draw_line( m_bitmap, gc, start_x, j, i, j );
}
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc));
return true;
}
gdk_wx_draw_bitmap( m_bitmap, gc, bitmap.GetBitmap(), 0, 0, 0, 0, bitmap.GetWidth(), bitmap.GetHeight() );
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc));
return true;
}
}
gdk_image_destroy( img );
- if (gc) gdk_gc_unref( gc );
+ if (gc) g_object_unref (G_OBJECT (gc));
if ( dst )
{
gdk_draw_image( GetBitmap(), data_gc, data_image, 0, 0, 0, 0, width, height );
gdk_image_destroy( data_image );
- gdk_gc_unref( data_gc );
+ g_object_unref (G_OBJECT (data_gc));
// Blit mask
gdk_draw_image( GetMask()->GetBitmap(), mask_gc, mask_image, 0, 0, 0, 0, width, height );
gdk_image_destroy( mask_image );
- gdk_gc_unref( mask_gc );
+ g_object_unref (G_OBJECT (mask_gc));
}
return true;
image.GetData(),
width*3 );
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc));
return true;
}
gdk_draw_image( GetPixmap(), data_gc, data_image, 0, 0, 0, 0, width, height );
gdk_image_destroy( data_image );
- gdk_gc_unref( data_gc );
+ g_object_unref (G_OBJECT (data_gc));
// Blit mask
gdk_draw_image( GetMask()->GetBitmap(), mask_gc, mask_image, 0, 0, 0, 0, width, height );
gdk_image_destroy( mask_image );
- gdk_gc_unref( mask_gc );
+ g_object_unref (G_OBJECT (mask_gc));
}
return true;
for (int i = 0; i < wxGCPoolSize; i++)
{
if (wxGCPool[i].m_gc)
- gdk_gc_unref( wxGCPool[i].m_gc );
+ g_object_unref (G_OBJECT (wxGCPool[i].m_gc));
}
free(wxGCPool);
gdk_gc_set_fill( gc, GDK_OPAQUE_STIPPLED );
gdk_gc_set_stipple( gc, mask );
gdk_draw_rectangle( new_mask, gc, TRUE, 0, 0, ww, hh );
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc));
}
if (is_mono)
gdk_draw_drawable( m_window, m_textGC, bitmap2, 0, 0, xx, yy, -1, -1 );
g_object_unref (G_OBJECT (bitmap2));
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc));
}
else
{
gdk_gc_set_fill( gc, GDK_OPAQUE_STIPPLED );
gdk_gc_set_stipple( gc, mask );
gdk_draw_rectangle( new_mask, gc, TRUE, 0, 0, bm_ww, bm_hh );
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc));
}
if (is_mono)
gdk_draw_drawable( m_window, m_textGC, bitmap, xsrc, ysrc, cx, cy, cw, ch );
g_object_unref (G_OBJECT (bitmap));
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc));
}
else
{
gdk_gc_set_function( gc, GDK_INVERT );
gdk_draw_rectangle( GDK_ROOT_PARENT(), gc, FALSE, x, y, w, h );
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc));
}
//-----------------------------------------------------------------------------
3,
win->m_width - 7,
height+1 );
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc));
// Hack alert
dc.m_window = pizza->bin_window;
gdk_draw_rectangle( widget->window, gc, FALSE,
dx, dy,
widget->allocation.width-dw-1, widget->allocation.height-dh-1 );
- gdk_gc_unref( gc );
+ g_object_unref (G_OBJECT (gc);
return;
}
#endif // __WXUNIVERSAL__
void wxWinModule::OnExit()
{
if (g_eraseGC)
- gdk_gc_unref( g_eraseGC );
+ g_object_unref (G_OBJECT (g_eraseGC));
}