[empathy] Hide the expander if the topic is not ellipsed



commit 24d8a05c4b6a428add69fb51bfc45fee904c9616
Author: Xavier Claessens <xclaesse gmail com>
Date:   Thu Mar 4 10:37:10 2010 +0100

    Hide the expander if the topic is not ellipsed
    
    Fixes bug #533638

 libempathy-gtk/empathy-chat.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index d3a7df6..4e84e6a 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;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]