Use gtk_widget_render_icon_pixbuf() instead of gtk_widget_render_icon()

because the latter is deprecated.
This commit is contained in:
Michael Natterer 2010-12-09 21:01:13 +01:00
parent 9c84e15484
commit d9b56a5dbe
2 changed files with 6 additions and 6 deletions

View file

@ -515,9 +515,9 @@ gimp_cell_renderer_toggle_create_pixbuf (GimpCellRendererToggle *toggle,
}
else
{
toggle->pixbuf = gtk_widget_render_icon (widget,
toggle->stock_id,
toggle->stock_size, NULL);
toggle->pixbuf = gtk_widget_render_icon_pixbuf (widget,
toggle->stock_id,
toggle->stock_size);
}
}

View file

@ -1195,9 +1195,9 @@ compose_dialog (const gchar *compose_type,
combo = gimp_drawable_combo_box_new (check_gray, NULL);
composeint.channel_menu[j] = combo;
ico = gtk_widget_render_icon (dialog,
GIMP_ICON_CHANNEL_GRAY,
GTK_ICON_SIZE_BUTTON, NULL);
ico = gtk_widget_render_icon_pixbuf (dialog,
GIMP_ICON_CHANNEL_GRAY,
GTK_ICON_SIZE_BUTTON);
model = gtk_combo_box_get_model (GTK_COMBO_BOX (combo));
gtk_list_store_append (GTK_LIST_STORE (model), &iter);
gtk_list_store_set (GTK_LIST_STORE (model), &iter,