[gnome-settings-daemon/automounter] automount: more GIcon cleanup
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/automounter] automount: more GIcon cleanup
- Date: Mon, 15 Nov 2010 16:07:37 +0000 (UTC)
commit b98ffa45aa4842efb864f064432066ae8772e7ba
Author: Tomas Bzatek <tbzatek redhat com>
Date: Mon Nov 15 17:07:10 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]