[gnome-contacts] Make edit image button nicer and have fallback avatar
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Make edit image button nicer and have fallback avatar
- Date: Tue, 28 Jun 2011 08:08:14 +0000 (UTC)
commit 92b39ecc13ef7c145cd5578e8ef27c1b4177a02c
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jun 28 09:56:57 2011 +0200
Make edit image button nicer and have fallback avatar
data/gnome-contacts.css | 2 ++
src/contacts-contact-pane.vala | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/data/gnome-contacts.css b/data/gnome-contacts.css
index 8008e11..ad192a0 100644
--- a/data/gnome-contacts.css
+++ b/data/gnome-contacts.css
@@ -34,6 +34,8 @@ ContactsListPane GtkTreeView {
padding: 0;
background-color: #ffffff;
background-image: none;
+ -GtkButton-child-displacement-x: 0;
+ -GtkButton-child-displacement-y: 0;
}
.contact-pane {
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index f7fbf4c..4d883c8 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -263,7 +263,7 @@ public class Contacts.ContactPane : EventBox {
}
if (pixbuf == null) {
- /* TODO: Set fallback image */
+ pixbuf = Contact.draw_fallback_avatar (size);
}
if (pixbuf != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]