app: add gimp_widget_load_icon() as replacement for gtk_widget_render_icon()

...and use it instead.
This commit is contained in:
Michael Natterer
2014-05-08 09:11:31 +02:00
parent ab36f26e63
commit 7d0b326359
8 changed files with 79 additions and 43 deletions

View File

@ -191,9 +191,8 @@ gimp_error_console_add (GimpErrorConsole *console,
gtk_text_buffer_get_end_iter (console->text_buffer, &end);
pixbuf = gtk_widget_render_icon (console->text_view,
gimp_get_message_icon_name (severity),
GTK_ICON_SIZE_BUTTON, NULL);
pixbuf = gimp_widget_load_icon (GTK_WIDGET (console),
gimp_get_message_icon_name (severity), 20);
gtk_text_buffer_insert_pixbuf (console->text_buffer, &end, pixbuf);
g_object_unref (pixbuf);