/*static*/ void wxArtProvider::InitNativeProvider()
{
- Push(new wxGTK2ArtProvider);
+ PushBack(new wxGTK2ArtProvider);
}
// ----------------------------------------------------------------------------
// with "stock-id" representation (in addition to pixmap and pixbuf
// ones) and would convert it to pixbuf when rendered.
- GtkStyle* style = wxGTKPrivate::GetButtonWidget()->style;
+ GtkStyle* style = gtk_widget_get_style(wxGTKPrivate::GetButtonWidget());
GtkIconSet* iconset = gtk_style_lookup_icon_set(style, stockid);
if (!iconset)
continue;
wxIcon icon;
- icon.SetPixbuf(pixbuf);
+ icon.CopyFromBitmap(wxBitmap(pixbuf));
bundle.AddIcon(icon);
}
}
}
- wxBitmap bmp;
- if (pixbuf != NULL)
- bmp.SetPixbuf(pixbuf);
-
- return bmp;
+ return wxBitmap(pixbuf);
}
wxIconBundle
const wxString stockid = wxArtIDToStock(id);
// try to load the bundle as stock icon first
- GtkStyle* style = wxGTKPrivate::GetButtonWidget()->style;
+ GtkStyle* style = gtk_widget_get_style(wxGTKPrivate::GetButtonWidget());
GtkIconSet* iconset = gtk_style_lookup_icon_set(style, stockid.utf8_str());
if ( iconset )
{