From 24d8a05c4b6a428add69fb51bfc45fee904c9616 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 4 Mar 2010 10:37:10 +0100 Subject: Hide the expander if the topic is not ellipsed Fixes bug #533638 --- libempathy-gtk/empathy-chat.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libempathy-gtk') 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; } -- cgit v1.2.3