[Xfce4-commits] <xfce4-indicator-plugin:master> Ellipsize labels only in deskbar mode.
Andrzej
noreply at xfce.org
Wed Dec 18 22:54:01 CET 2013
Updating branch refs/heads/master
to f7ad97a8cb36fadd205a3d78f55d9bdaad9fb43e (commit)
from d046d4b341f2194d52dbd8408740789ca7be0063 (commit)
commit f7ad97a8cb36fadd205a3d78f55d9bdaad9fb43e
Author: Andrzej <ndrwrdck at gmail.com>
Date: Wed Dec 18 21:53:33 2013 +0000
Ellipsize labels only in deskbar mode.
panel-plugin/indicator-button-box.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/panel-plugin/indicator-button-box.c b/panel-plugin/indicator-button-box.c
index e99df98..c3d00fe 100644
--- a/panel-plugin/indicator-button-box.c
+++ b/panel-plugin/indicator-button-box.c
@@ -244,7 +244,6 @@ indicator_button_box_set_label (IndicatorButtonBox *box,
g_signal_connect(G_OBJECT(box->label), "notify::label",
G_CALLBACK(indicator_button_box_label_changed), box);
- gtk_label_set_ellipsize (GTK_LABEL (box->label), PANGO_ELLIPSIZE_END);
box->is_small = FALSE;
gtk_container_add (GTK_CONTAINER (box), box->label);
@@ -372,10 +371,12 @@ indicator_button_box_is_small (IndicatorButtonBox *box)
{
box->orientation = GTK_ORIENTATION_HORIZONTAL;
gtk_misc_set_alignment (GTK_MISC (box->label), 0.0, 0.5);
+ gtk_label_set_ellipsize (GTK_LABEL (box->label), PANGO_ELLIPSIZE_END);
}
else
{
gtk_misc_set_alignment (GTK_MISC (box->label), 0.5, 0.5);
+ gtk_label_set_ellipsize (GTK_LABEL (box->label), PANGO_ELLIPSIZE_NONE);
}
gtk_label_set_angle (GTK_LABEL (box->label),
(indicator_config_get_orientation (box->config) == GTK_ORIENTATION_VERTICAL) ?
More information about the Xfce4-commits
mailing list