[empathy] accounts-dialog: set pixbuf on the cell rather than the icon-name
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] accounts-dialog: set pixbuf on the cell rather than the icon-name
- Date: Wed, 12 Sep 2012 13:53:27 +0000 (UTC)
commit 813d73b98ee89780dc8be751b8a4a00b33e9639b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue May 1 12:12:48 2012 +0200
accounts-dialog: set pixbuf on the cell rather than the icon-name
https://bugzilla.gnome.org/show_bug.cgi?id=675220
src/empathy-accounts-dialog.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 3234cea..d05f348 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1042,15 +1042,23 @@ accounts_dialog_model_status_pixbuf_data_func (GtkTreeViewColumn *tree_column,
EmpathyAccountsDialog *dialog)
{
TpAccount *account;
+ const gchar *icon_name;
+ GdkPixbuf *pixbuf;
gtk_tree_model_get (model, iter, COL_ACCOUNT, &account, -1);
+ icon_name = get_status_icon_for_account (dialog, account);
+ pixbuf = empathy_pixbuf_from_icon_name (icon_name, GTK_ICON_SIZE_BUTTON);
+
g_object_set (cell,
- "icon-name", get_status_icon_for_account (dialog, account),
+ "pixbuf", pixbuf,
NULL);
if (account != NULL)
g_object_unref (account);
+
+ if (pixbuf != NULL)
+ g_object_unref (pixbuf);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]