summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kahn <xkahn@src.gnome.org>2004-12-03 20:30:09 +0000
committerBenjamin Kahn <xkahn@src.gnome.org>2004-12-03 20:30:09 +0000
commit7cb33bafb8c76f2c9682397d8253054a307484a0 (patch)
treeb893f59e341918e0aaf61c2d54a315672b31e3c9
parent228b2c7214ff9d874b70857c606d4f606ee26afd (diff)
downloadlibwnck-7cb33bafb8c76f2c9682397d8253054a307484a0.tar.gz
When a window title is too long to fit in the space provided, it should be
* When a window title is too long to fit in the space provided, it should be shortened and ellipsizes should be shown. Fix for bug #155868
-rw-r--r--ChangeLog6
-rw-r--r--libwnck/tasklist.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ccf2a80..7e82090 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-12-03 Benjamin Kahn <xkahn@novell.com>
+
+ * When a window title is too long to fit in the space provided,
+ it should be shortened and ellipsizes should be shown.
+ Fix for bug #155868
+
2004-10-19 Elijah Newren <newren@math.utah.edu>
* rationales.txt: New file (modelled after the metacity one with
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index 7f03f9e..37808d2 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -2528,6 +2528,10 @@ wnck_task_create_widgets (WnckTask *task)
text = wnck_task_get_text (task);
task->label = gtk_label_new (text);
+ gtk_misc_set_alignment (GTK_MISC (task->label), 0.0, 0.5);
+ gtk_label_set_ellipsize (GTK_LABEL (task->label),
+ PANGO_ELLIPSIZE_END);
+
if (wnck_task_get_demands_attention (task))
eel_gtk_label_make_bold ((GTK_LABEL (task->label)));
gtk_widget_show (task->label);
@@ -2542,7 +2546,7 @@ wnck_task_create_widgets (WnckTask *task)
task->label,
1, 2,
0, 1,
- GTK_FILL, GTK_EXPAND,
+ GTK_FILL | GTK_EXPAND, GTK_EXPAND,
4, 0);
gtk_container_add (GTK_CONTAINER (task->button), table);