diff options
author | Benjamin Kahn <xkahn@src.gnome.org> | 2004-12-03 20:30:09 +0000 |
---|---|---|
committer | Benjamin Kahn <xkahn@src.gnome.org> | 2004-12-03 20:30:09 +0000 |
commit | 7cb33bafb8c76f2c9682397d8253054a307484a0 (patch) | |
tree | b893f59e341918e0aaf61c2d54a315672b31e3c9 | |
parent | 228b2c7214ff9d874b70857c606d4f606ee26afd (diff) | |
download | libwnck-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-- | ChangeLog | 6 | ||||
-rw-r--r-- | libwnck/tasklist.c | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -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); |