void wxToolBarTool::SetImage() { const wxBitmap& bitmap = GetNormalBitmap(); wxCHECK_RET(bitmap.IsOk(), "invalid bitmap for wxToolBar icon"); GtkWidget* image = gtk_tool_button_get_icon_widget(GTK_TOOL_BUTTON(m_item)); // always use pixbuf, because pixmap mask does not // work with disabled images in some themes gtk_image_set_from_pixbuf(GTK_IMAGE(image), bitmap.GetPixbuf()); }
Pixmap GetInsensPixmap() { m_bitmapCache.SetBitmap( GetNormalBitmap() ); return (Pixmap)m_bitmapCache.GetInsensPixmap( (WXWidget)m_widget ); }
void wxToolBarTool::SetIcon() { m_qtToolButton->setIcon( QIcon( *GetNormalBitmap().GetHandle() )); }