aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-chat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index d3a7df6f6..4e84e6af9 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1250,6 +1250,12 @@ chat_topic_label_size_allocate_cb (GtkLabel *label,
if (!gtk_label_get_line_wrap (label)) {
priv->topic_width = -1;
+
+ if (pango_layout_is_ellipsized (gtk_label_get_layout (label)))
+ gtk_widget_show (priv->expander_topic);
+ else
+ gtk_widget_hide (priv->expander_topic);
+
return;
}