changeset 27748:d0df170ca20a

re-commit ellipsis patch.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 15 Dec 2007 08:52:04 +0000
parents 2be2eec7d273
children 6b74c3255901
files pidgin/gtkconv.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Sat Dec 15 05:17:48 2007 +0000
+++ b/pidgin/gtkconv.c	Sat Dec 15 08:52:04 2007 +0000
@@ -6656,6 +6656,18 @@
 			style = NULL;
 		}
 
+		// nosuke's tab width patch
+		if ((purple_prefs_get_int(PIDGIN_PREFS_ROOT "/conversations/tab_side") == (GTK_POS_LEFT|8)
+			 || purple_prefs_get_int(PIDGIN_PREFS_ROOT "/conversations/tab_side") == (GTK_POS_RIGHT|8))
+			&& purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/trim_vertical_tabs"))
+			ellipsis = TRUE;
+
+		title_tmp = title;
+		if (ellipsis)
+			title = pidgin_gtk_ellipsis_text(gtkconv->tab_label, title_tmp, 60, "...");
+		else
+			title = title_tmp;
+
 		gtk_widget_set_name(gtkconv->tab_label, style);
 		gtk_label_set_text(GTK_LABEL(gtkconv->tab_label), title);
 		gtk_widget_set_state(gtkconv->tab_label, GTK_STATE_ACTIVE);