avoid deprecated functions and direct struct access
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -203,7 +203,7 @@ GdkPixbuf *CreateStockIcon(const char *stockid, GtkIconSize size)
|
||||
// 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)
|
||||
@@ -310,7 +310,7 @@ wxGTK2ArtProvider::CreateIconBundle(const wxArtID& id,
|
||||
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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user