[gnome-control-center] Use changes-prevent and changes-allow icons from the icon-them instead of the outdated lock-icons
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Use changes-prevent and changes-allow icons from the icon-them instead of the outdated lock-icons
- Date: Fri, 16 Apr 2010 15:17:56 +0000 (UTC)
commit c13aaa0f638b94c034a45dcac5b5317e25a652a0
Author: Andreas Proschofsky <suka gentoo org>
Date: Fri Apr 16 17:16:45 2010 +0200
Use changes-prevent and changes-allow icons from the icon-them instead of
the outdated lock-icons
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=408585
capplets/about-me/gnome-about-me-password.c | 4 ++--
capplets/about-me/icons/Makefile.am | 2 --
.../about-me/icons/gnome-about-me-lock-open.png | Bin 2913 -> 0 bytes
capplets/about-me/icons/gnome-about-me-lock.png | Bin 2978 -> 0 bytes
4 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/capplets/about-me/gnome-about-me-password.c b/capplets/about-me/gnome-about-me-password.c
index 27e75b3..da7d57b 100644
--- a/capplets/about-me/gnome-about-me-password.c
+++ b/capplets/about-me/gnome-about-me-password.c
@@ -770,7 +770,7 @@ passdlg_set_auth_state (PasswordDialog *pdialog, gboolean state)
gtk_widget_grab_focus (GTK_WIDGET (pdialog->new_password));
/* Set open lock image */
- gtk_image_set_from_file (GTK_IMAGE (pdialog->dialog_image), GNOMECC_PIXMAP_DIR "/gnome-about-me-lock-open.png");
+ gtk_image_set_from_icon_name (GTK_IMAGE (pdialog->dialog_image), "changes-allow", GTK_ICON_SIZE_DIALOG);
} else {
/* Not authenticated state */
@@ -778,7 +778,7 @@ passdlg_set_auth_state (PasswordDialog *pdialog, gboolean state)
gtk_widget_grab_focus (GTK_WIDGET (pdialog->current_password));
/* Set closed lock image */
- gtk_image_set_from_file (GTK_IMAGE (pdialog->dialog_image), GNOMECC_PIXMAP_DIR "/gnome-about-me-lock.png");
+ gtk_image_set_from_icon_name (GTK_IMAGE (pdialog->dialog_image), "changes-prevent", GTK_ICON_SIZE_DIALOG);
}
}
diff --git a/capplets/about-me/icons/Makefile.am b/capplets/about-me/icons/Makefile.am
index 73114cb..a35a9e6 100644
--- a/capplets/about-me/icons/Makefile.am
+++ b/capplets/about-me/icons/Makefile.am
@@ -1,7 +1,5 @@
pixmapsdir = $(pkgdatadir)/pixmaps
pixmaps_DATA = \
- gnome-about-me-lock.png \
- gnome-about-me-lock-open.png \
left-index-finger.svg \
left-little-finger.svg \
left-middle-finger.svg \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]