tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()

This commit is contained in:
Benjamin Otte 2010-12-15 12:04:15 +01:00
parent 6aa745b819
commit 7caec64bc3

View File

@ -111,9 +111,9 @@ on_notebook_drag_begin (GtkWidget *widget,
if (page_num > 2) if (page_num > 2)
{ {
pixbuf = gtk_widget_render_icon (widget, pixbuf = gtk_widget_render_icon_pixbuf (widget,
(page_num % 2) ? GTK_STOCK_HELP : GTK_STOCK_STOP, (page_num % 2) ? GTK_STOCK_HELP : GTK_STOCK_STOP,
GTK_ICON_SIZE_DND, NULL); GTK_ICON_SIZE_DND);
gtk_drag_set_icon_pixbuf (context, pixbuf, 0, 0); gtk_drag_set_icon_pixbuf (context, pixbuf, 0, 0);
g_object_unref (pixbuf); g_object_unref (pixbuf);