get image from icon factory directly

2004-11-26  JP Rosevear  <jpr@novell.com>

	* audio-inline.c (org_gnome_audio_inline_add_button): get image
	from icon factory directly

svn path=/trunk/; revision=28001
This commit is contained in:
JP Rosevear
2004-11-26 15:52:59 +00:00
committed by JP Rosevear
parent bb4883ffd0
commit bbfd4e8ca4
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2004-11-26 JP Rosevear <jpr@novell.com>
* audio-inline.c (org_gnome_audio_inline_add_button): get image
from icon factory directly
2004-11-11 Radek Doulik <rodo@ximian.com>
* org-gnome-audio-inline.eplug.in: fixed author and description

View File

@ -254,10 +254,7 @@ org_gnome_audio_inline_add_button (GtkWidget *box, char *icon_name, GCallback cb
GtkWidget *icon, *button;
GdkPixbuf *pixbuf;
pixbuf = e_icon_factory_get_icon (icon_name, E_ICON_SIZE_LARGE_TOOLBAR);
icon = gtk_image_new_from_pixbuf (pixbuf);
g_object_unref (pixbuf);
icon = e_icon_factory_get_image (icon_name, E_ICON_SIZE_LARGE_TOOLBAR);
gtk_widget_show (icon);
button = gtk_button_new ();