aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-03 18:19:28 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2010-11-10 06:33:21 +0800
commit033bed834eb7e9b8fa61329998f23b2686c33d93 (patch)
tree8115124d9bb6e27b6e6ff379091f3fba4536dd43 /widgets
parent3b3b6cb0abf2bab0a145df00184fc96677870ec8 (diff)
downloadgsoc2013-evolution-033bed834eb7e9b8fa61329998f23b2686c33d93.tar
gsoc2013-evolution-033bed834eb7e9b8fa61329998f23b2686c33d93.tar.gz
gsoc2013-evolution-033bed834eb7e9b8fa61329998f23b2686c33d93.tar.bz2
gsoc2013-evolution-033bed834eb7e9b8fa61329998f23b2686c33d93.tar.lz
gsoc2013-evolution-033bed834eb7e9b8fa61329998f23b2686c33d93.tar.xz
gsoc2013-evolution-033bed834eb7e9b8fa61329998f23b2686c33d93.tar.zst
gsoc2013-evolution-033bed834eb7e9b8fa61329998f23b2686c33d93.zip
Bug #632768 - Message list not realized when opening new folder
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-tree.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index 01db243b33..5f0effaac8 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -3637,23 +3637,25 @@ e_tree_set_info_message (ETree *tree, const gchar *info_message)
gtk_widget_get_allocation (widget, &allocation);
if (!tree->priv->info_text) {
- tree->priv->info_text = gnome_canvas_item_new (
- GNOME_CANVAS_GROUP (gnome_canvas_root (tree->priv->table_canvas)),
- e_text_get_type (),
- "line_wrap", TRUE,
- "clip", TRUE,
- "justification", GTK_JUSTIFY_LEFT,
- "text", info_message,
- "draw_background", FALSE,
- "width", (gdouble) allocation.width - 60.0,
- "clip_width", (gdouble) allocation.width - 60.0,
- NULL);
+ if (allocation.width > 60) {
+ tree->priv->info_text = gnome_canvas_item_new (
+ GNOME_CANVAS_GROUP (gnome_canvas_root (tree->priv->table_canvas)),
+ e_text_get_type (),
+ "line_wrap", TRUE,
+ "clip", TRUE,
+ "justification", GTK_JUSTIFY_LEFT,
+ "text", info_message,
+ "draw_background", FALSE,
+ "width", (gdouble) allocation.width - 60.0,
+ "clip_width", (gdouble) allocation.width - 60.0,
+ NULL);
- e_canvas_item_move_absolute (tree->priv->info_text, 30, 30);
+ e_canvas_item_move_absolute (tree->priv->info_text, 30, 30);
- tree->priv->info_text_resize_id = g_signal_connect (
- tree, "size_allocate",
- G_CALLBACK (tree_size_allocate), tree);
+ tree->priv->info_text_resize_id = g_signal_connect (
+ tree, "size_allocate",
+ G_CALLBACK (tree_size_allocate), tree);
+ }
} else
gnome_canvas_item_set (tree->priv->info_text, "text", info_message, NULL);
}