[emerillon] Prevent labels from going too far by ellipsizing them
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [emerillon] Prevent labels from going too far by ellipsizing them
- Date: Mon, 19 Oct 2009 20:34:12 +0000 (UTC)
commit df8195049b2e8bce2509a5230ed55d3e1f60f872
Author: Pierre-Luc Beaudoin <pierre-luc beaudoin novopia com>
Date: Sun Oct 18 13:25:38 2009 -0400
Prevent labels from going too far by ellipsizing them
emerillon/sidebar.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/emerillon/sidebar.c b/emerillon/sidebar.c
index d8bf555..e8c10df 100644
--- a/emerillon/sidebar.c
+++ b/emerillon/sidebar.c
@@ -411,10 +411,14 @@ emerillon_sidebar_init (EmerillonSidebar *sidebar)
select_hbox = gtk_hbox_new (FALSE, 0);
sidebar->priv->label = gtk_label_new ("");
+ gtk_label_set_ellipsize (GTK_LABEL (sidebar->priv->label),
+ PANGO_ELLIPSIZE_END);
+ gtk_misc_set_alignment (GTK_MISC (sidebar->priv->label),
+ 0, 0.5);
gtk_box_pack_start (GTK_BOX (select_hbox),
sidebar->priv->label,
- FALSE, FALSE, 0);
+ TRUE, TRUE, 0);
gtk_widget_show (sidebar->priv->label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]