[gnome-boxes] i-properties-provider: Add 'text' prop
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] i-properties-provider: Add 'text' prop
- Date: Sat, 16 Aug 2014 16:28:10 +0000 (UTC)
commit 75981a00e746c9e7e29845d6887fadb257cad540
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Aug 15 17:05:00 2014 +0200
i-properties-provider: Add 'text' prop
This allows to set a StringProperty's text.
With the next patches, this will allow to keep the properties page's name
entry and the title's name entry consistent.
https://bugzilla.gnome.org/show_bug.cgi?id=692383
src/i-properties-provider.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/i-properties-provider.vala b/src/i-properties-provider.vala
index 316bb70..566ec5a 100644
--- a/src/i-properties-provider.vala
+++ b/src/i-properties-provider.vala
@@ -124,6 +124,11 @@ private class Boxes.StringProperty : Boxes.Property {
set { entry.editable = value; }
}
+ public string text {
+ get { return entry.text; }
+ set { entry.text = value; }
+ }
+
private Boxes.EditableEntry entry;
public StringProperty (string name, string value) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]