]> www.fi.muni.cz Git - evince.git/commitdiff
toolbar-editor: Use gtk_widget_render_icon_pixbuf()
authorCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 23 Dec 2010 18:12:25 +0000 (19:12 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 23 Dec 2010 18:13:27 +0000 (19:13 +0100)
cut-n-paste/toolbar-editor/egg-toolbar-editor.c

index 5e75ba82aa4078c7ddbd0f4ad5a8bec247e5237b..349daf0062cb29774e322d9b7a79915ee2ca08ca 100644 (file)
@@ -381,8 +381,8 @@ event_box_realize_cb (GtkWidget *widget, GtkImage *icon)
       GdkPixbuf *pixbuf;
 
       gtk_image_get_stock (icon, &stock_id, NULL);
-      pixbuf = gtk_widget_render_icon (widget, stock_id,
-                                      GTK_ICON_SIZE_LARGE_TOOLBAR, NULL);
+      pixbuf = gtk_widget_render_icon_pixbuf (widget, stock_id,
+                                              GTK_ICON_SIZE_LARGE_TOOLBAR);
       gtk_drag_source_set_icon_pixbuf (widget, pixbuf);
       g_object_unref (pixbuf);
     }