diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-05-01 18:12:48 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-12 21:53:10 +0800 |
commit | 813d73b98ee89780dc8be751b8a4a00b33e9639b (patch) | |
tree | aef36922f629116a3497edc7404eec57459f9fb0 | |
parent | 0e956cfcf66b23bd359c4fefbabd7288c1d2bd5d (diff) | |
download | gsoc2013-empathy-813d73b98ee89780dc8be751b8a4a00b33e9639b.tar gsoc2013-empathy-813d73b98ee89780dc8be751b8a4a00b33e9639b.tar.gz gsoc2013-empathy-813d73b98ee89780dc8be751b8a4a00b33e9639b.tar.bz2 gsoc2013-empathy-813d73b98ee89780dc8be751b8a4a00b33e9639b.tar.lz gsoc2013-empathy-813d73b98ee89780dc8be751b8a4a00b33e9639b.tar.xz gsoc2013-empathy-813d73b98ee89780dc8be751b8a4a00b33e9639b.tar.zst gsoc2013-empathy-813d73b98ee89780dc8be751b8a4a00b33e9639b.zip |
accounts-dialog: set pixbuf on the cell rather than the icon-name
https://bugzilla.gnome.org/show_bug.cgi?id=675220
-rw-r--r-- | 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 3234cead4..d05f34821 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 |