[gnome-boxes] editable-entry: Add text alignment props
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] editable-entry: Add text alignment props
- Date: Sat, 16 Aug 2014 16:28:00 +0000 (UTC)
commit e60d4c705d899d05031eb677d872398f92eff412
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Aug 15 16:57:09 2014 +0200
editable-entry: Add text alignment props
This patch will allow to align the title entry's text to look like a
title, and therefore, together with following patches this allows editing
name through window's title.
https://bugzilla.gnome.org/show_bug.cgi?id=692383
src/editable-entry.vala | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/editable-entry.vala b/src/editable-entry.vala
index 6c5f870..fcd9404 100644
--- a/src/editable-entry.vala
+++ b/src/editable-entry.vala
@@ -52,6 +52,23 @@ private class Boxes.EditableEntry: Notebook {
}
}
+ public float text_xalign {
+ get { return label.xalign; }
+ set {
+ label.xalign = value;
+ button_label.xalign = value;
+ entry.xalign = value;
+ }
+ }
+
+ public float text_yalign {
+ get { return label.yalign; }
+ set {
+ label.yalign = value;
+ button_label.yalign = value;
+ }
+ }
+
private Pango.Weight _weight = Pango.Weight.NORMAL;
/* This is disabled for now since its impossible to
declare a default for the paramspec, and the number that
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]