Commit a47f178
Allow a theme to specify ellipsize width for a title
It's nice to indicate when a title is truncated with an ellipsis.
Because themes may draw a title multiple times to draw a shadow, or
may include the window icon within the title area, we can't determine
the proper ellipsization width automatically, so add an optional
attribute to the <title/> element "ellipsize_width" which, if set,
is the width to ellipsize at.
This is only enabled if a theme version of 3.1 is required.
When it's not set, we keep the old behavior of just letting the
title be clipped with a hard edge.
https://bugzilla.gnome.org/show_bug.cgi?id=591842
NOTE: Patch copied from mutter and adapted for metacity.1 parent 728f002 commit a47f178
File tree
5 files changed
+60
-3
lines changed- doc
- src/ui
5 files changed
+60
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| 485 | + | |
485 | 486 | | |
486 | 487 | | |
487 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2615 | 2615 | | |
2616 | 2616 | | |
2617 | 2617 | | |
| 2618 | + | |
2618 | 2619 | | |
2619 | 2620 | | |
2620 | 2621 | | |
2621 | 2622 | | |
2622 | 2623 | | |
2623 | 2624 | | |
| 2625 | + | |
2624 | 2626 | | |
2625 | 2627 | | |
2626 | 2628 | | |
| |||
2630 | 2632 | | |
2631 | 2633 | | |
2632 | 2634 | | |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
2633 | 2638 | | |
2634 | 2639 | | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
2635 | 2647 | | |
2636 | 2648 | | |
2637 | 2649 | | |
| |||
2648 | 2660 | | |
2649 | 2661 | | |
2650 | 2662 | | |
| 2663 | + | |
| 2664 | + | |
2651 | 2665 | | |
2652 | 2666 | | |
2653 | 2667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3010 | 3010 | | |
3011 | 3011 | | |
3012 | 3012 | | |
| 3013 | + | |
| 3014 | + | |
3013 | 3015 | | |
3014 | 3016 | | |
3015 | 3017 | | |
| |||
3875 | 3877 | | |
3876 | 3878 | | |
3877 | 3879 | | |
| 3880 | + | |
3878 | 3881 | | |
3879 | 3882 | | |
3880 | 3883 | | |
3881 | 3884 | | |
3882 | 3885 | | |
3883 | 3886 | | |
3884 | 3887 | | |
3885 | | - | |
| 3888 | + | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
| 3897 | + | |
| 3898 | + | |
| 3899 | + | |
| 3900 | + | |
| 3901 | + | |
| 3902 | + | |
| 3903 | + | |
| 3904 | + | |
| 3905 | + | |
| 3906 | + | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
3886 | 3921 | | |
3887 | 3922 | | |
3888 | 3923 | | |
| |||
3907 | 3942 | | |
3908 | 3943 | | |
3909 | 3944 | | |
3910 | | - | |
3911 | | - | |
3912 | 3945 | | |
3913 | 3946 | | |
3914 | 3947 | | |
3915 | 3948 | | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
3916 | 3953 | | |
3917 | 3954 | | |
3918 | 3955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| 542 | + | |
542 | 543 | | |
543 | 544 | | |
544 | 545 | | |
| |||
0 commit comments