[gthumb] use the same settings used by gtk+ for the title label
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] use the same settings used by gtk+ for the title label
- Date: Sun, 13 Apr 2014 15:10:50 +0000 (UTC)
commit c50f7a7dc88138ca2c251529cc7a72d4a3c159e4
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Apr 13 16:55:35 2014 +0200
use the same settings used by gtk+ for the title label
gthumb/gth-window-title.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-window-title.c b/gthumb/gth-window-title.c
index 94ceae4..e867a0f 100644
--- a/gthumb/gth-window-title.c
+++ b/gthumb/gth-window-title.c
@@ -70,6 +70,10 @@ gth_window_title_init (GthWindowTitle *self)
gtk_box_set_spacing (GTK_BOX (self), 10);
self->priv->title = gtk_label_new ("");
+ gtk_label_set_line_wrap (GTK_LABEL (self->priv->title), FALSE);
+ gtk_label_set_single_line_mode (GTK_LABEL (self->priv->title), TRUE);
+ gtk_label_set_ellipsize (GTK_LABEL (self->priv->title), PANGO_ELLIPSIZE_END);
+ gtk_label_set_width_chars (GTK_LABEL (self->priv->title), 20);
gtk_style_context_add_class (gtk_widget_get_style_context (self->priv->title), "title");
gtk_box_pack_start (GTK_BOX (self), self->priv->title, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]