aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-03-04 17:37:10 +0800
committerXavier Claessens <xclaesse@gmail.com>2010-04-02 16:58:45 +0800
commit24d8a05c4b6a428add69fb51bfc45fee904c9616 (patch)
tree791c9c4e1d1ea47e1f836725199bd6bdcc2fb3dd
parent0df6dd7c16289086ed9e3744edbe6db109219da9 (diff)
downloadgsoc2013-empathy-24d8a05c4b6a428add69fb51bfc45fee904c9616.tar
gsoc2013-empathy-24d8a05c4b6a428add69fb51bfc45fee904c9616.tar.gz
gsoc2013-empathy-24d8a05c4b6a428add69fb51bfc45fee904c9616.tar.bz2
gsoc2013-empathy-24d8a05c4b6a428add69fb51bfc45fee904c9616.tar.lz
gsoc2013-empathy-24d8a05c4b6a428add69fb51bfc45fee904c9616.tar.xz
gsoc2013-empathy-24d8a05c4b6a428add69fb51bfc45fee904c9616.tar.zst
gsoc2013-empathy-24d8a05c4b6a428add69fb51bfc45fee904c9616.zip
Hide the expander if the topic is not ellipsed
Fixes bug #533638
-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;
}