[polari] roomList: Ensure counter labels are actually square
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] roomList: Ensure counter labels are actually square
- Date: Fri, 1 Nov 2013 01:39:09 +0000 (UTC)
commit 1803d452fccfdb13ecb1a823217e258ec6b4cd51
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Oct 31 18:38:29 2013 +0000
roomList: Ensure counter labels are actually square
Square does look better than mostly square :-)
https://bugzilla.gnome.org/show_bug.cgi?id=709848
src/roomList.js | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/roomList.js b/src/roomList.js
index 7949acd..d6ee11d 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -108,10 +108,13 @@ const RoomRow = new Lang.Class({
this._stack = new Gtk.Stack();
box.add(this._stack);
- this._counter = new Gtk.Label({ width_chars: 2,
- halign: Gtk.Align.END });
+ let frame = new Gtk.AspectFrame({ obey_child: false,
+ shadow_type: Gtk.ShadowType.NONE });
+ this._stack.add_named(frame, 'normal');
+
+ this._counter = new Gtk.Label({ width_chars: 2 });
this._counter.get_style_context().add_class('pending-messages-count');
- this._stack.add_named(this._counter, 'normal');
+ frame.add(this._counter);
this.selection_button = new Gtk.CheckButton();
this._stack.add_named(this.selection_button, 'selection');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]