forked from AuroraMiddleware/gtk
GtkFileChooser: Use gtk_widget_render_icon_pixbuf()
Instead of gtk_widget_render_icon() which is now deprecated.
This commit is contained in:
parent
a5dba1670e
commit
e2100b13d0
@ -1124,7 +1124,7 @@ set_preview_widget (GtkFileChooserDefault *impl,
|
||||
static GdkPixbuf *
|
||||
render_search_icon (GtkFileChooserDefault *impl)
|
||||
{
|
||||
return gtk_widget_render_icon (GTK_WIDGET (impl), GTK_STOCK_FIND, GTK_ICON_SIZE_MENU, NULL);
|
||||
return gtk_widget_render_icon_pixbuf (GTK_WIDGET (impl), GTK_STOCK_FIND, GTK_ICON_SIZE_MENU);
|
||||
}
|
||||
|
||||
static GdkPixbuf *
|
||||
@ -1144,7 +1144,7 @@ render_recent_icon (GtkFileChooserDefault *impl)
|
||||
|
||||
/* fallback */
|
||||
if (!retval)
|
||||
retval = gtk_widget_render_icon (GTK_WIDGET (impl), GTK_STOCK_FILE, GTK_ICON_SIZE_MENU, NULL);
|
||||
retval = gtk_widget_render_icon_pixbuf (GTK_WIDGET (impl), GTK_STOCK_FILE, GTK_ICON_SIZE_MENU);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user