parent
49bbb00850
commit
33c2de748a
@ -130,11 +130,16 @@ static gboolean wxGtkImageDraw(GtkWidget* widget, GdkEventExpose* event)
|
|||||||
#endif
|
#endif
|
||||||
const wxBitmap bitmap(image->m_provider->Get(scale));
|
const wxBitmap bitmap(image->m_provider->Get(scale));
|
||||||
|
|
||||||
#ifndef __WXGTK3__
|
|
||||||
// We rely on GTK to draw default disabled images
|
|
||||||
if (!bitmap.IsOk())
|
if (!bitmap.IsOk())
|
||||||
|
{
|
||||||
|
#ifdef __WXGTK3__
|
||||||
|
// Missing bitmap, just do the default
|
||||||
|
return wxGtkImageParentClass->draw(widget, cr);
|
||||||
|
#else
|
||||||
|
// We rely on GTK to draw default disabled images
|
||||||
return wxGtkImageParentClass->expose_event(widget, event);
|
return wxGtkImageParentClass->expose_event(widget, event);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
GtkAllocation alloc;
|
GtkAllocation alloc;
|
||||||
gtk_widget_get_allocation(widget, &alloc);
|
gtk_widget_get_allocation(widget, &alloc);
|
||||||
|
Loading…
Reference in New Issue
Block a user