[gnome-settings-daemon] automount: more GIcon cleanup



commit ec051ac77eda32adc251f67e237cecb0c95b4b3d
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Thu Nov 25 15:21:05 2010 +0100

    automount: more GIcon cleanup

 plugins/automount/nautilus-autorun.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/plugins/automount/nautilus-autorun.c b/plugins/automount/nautilus-autorun.c
index 723faf8..14ea4ef 100644
--- a/plugins/automount/nautilus-autorun.c
+++ b/plugins/automount/nautilus-autorun.c
@@ -1231,13 +1231,7 @@ show_dialog:
 	if (g_mount_can_eject (mount)) {
 		GtkWidget *eject_image;
 		eject_button = gtk_button_new_with_mnemonic (_("_Eject"));
-		pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
-						   "media-eject",
-						   get_icon_size_for_stock_size (GTK_ICON_SIZE_BUTTON),
-						   0,
-						   NULL);
-		eject_image = gtk_image_new_from_pixbuf (pixbuf);
-		g_object_unref (pixbuf);
+		eject_image = gtk_image_new_from_icon_name ("media-eject", GTK_ICON_SIZE_BUTTON);
 		gtk_button_set_image (GTK_BUTTON (eject_button), eject_image);
 		data->should_eject = TRUE;
 	} else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]