[gnome-documents] toolbar: ellipsize preview label
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] toolbar: ellipsize preview label
- Date: Mon, 21 Nov 2011 15:51:21 +0000 (UTC)
commit f001f93505397d1a982764c1f6688533f90b7d52
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 21 10:30:54 2011 -0500
toolbar: ellipsize preview label
So that it won't disappear when it's given an allocation < than its
natural size.
src/mainToolbar.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index 411dbe1..bb3fb82 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -23,6 +23,7 @@ const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const GtkClutter = imports.gi.GtkClutter;
+const Pango = imports.gi.Pango;
const _ = imports.gettext.gettext;
@@ -279,7 +280,7 @@ MainToolbar.prototype = {
valign: Gtk.Align.CENTER });
this._centerGroup.add(grid);
- this._titleLabel = new Gtk.Label();
+ this._titleLabel = new Gtk.Label({ ellipsize: Pango.EllipsizeMode.END });
grid.add(this._titleLabel);
this._pageLabel = new Gtk.Label({ margin_left: 12 });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]