[gnome-todo] task-list-item: draw empty list instead of icon
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-list-item: draw empty list instead of icon
- Date: Tue, 14 Jul 2015 19:40:42 +0000 (UTC)
commit 471eb2f9818234e33c86f510c694c791773eeb56
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jul 14 16:35:57 2015 -0300
task-list-item: draw empty list instead of icon
It is very disruptive to see the symbolic icon, then
suddenly the list icon gets ready and changes.
Show an empty list icon instead.
src/gtd-task-list-item.c | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/src/gtd-task-list-item.c b/src/gtd-task-list-item.c
index 6a706f3..8bd4139 100644
--- a/src/gtd-task-list-item.c
+++ b/src/gtd-task-list-item.c
@@ -266,22 +266,15 @@ out:
static void
gtd_task_list_item__update_thumbnail (GtdTaskListItem *item)
{
- GtdTaskListItemPrivate *priv = item->priv;
+ GtdTaskListItemPrivate *priv;
+ GdkPixbuf *pix;
- if (!gtd_object_get_ready (GTD_OBJECT (priv->list)))
- {
- gtk_image_set_from_icon_name (GTK_IMAGE (priv->icon_image),
- "folder-documents-symbolic",
- GTK_ICON_SIZE_DIALOG);
- }
- else
- {
- GdkPixbuf *pix = gtd_task_list_item__render_thumbnail (item);
+ priv = item->priv;
+ pix = gtd_task_list_item__render_thumbnail (item);
- gtk_image_set_from_pixbuf (GTK_IMAGE (priv->icon_image), pix);
+ gtk_image_set_from_pixbuf (GTK_IMAGE (priv->icon_image), pix);
- g_object_unref (pix);
- }
+ g_object_unref (pix);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]