[dconf-editor] Make bookmark_name a construct property.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Make bookmark_name a construct property.
- Date: Tue, 26 Jul 2016 12:52:36 +0000 (UTC)
commit 4f2046eeb96b3aeae3e2fd3fc18342199d82e029
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Jul 26 14:52:26 2016 +0200
Make bookmark_name a construct property.
editor/bookmarks.vala | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/editor/bookmarks.vala b/editor/bookmarks.vala
index 5f59511..42db200 100644
--- a/editor/bookmarks.vala
+++ b/editor/bookmarks.vala
@@ -149,14 +149,18 @@ public class Bookmarks : MenuButton
[GtkTemplate (ui = "/ca/desrt/dconf-editor/ui/bookmark.ui")]
private class Bookmark : Grid
{
- public string bookmark_name { get; private set; }
+ public string bookmark_name { get; construct; }
[GtkChild] private Label bookmark_label;
[GtkChild] public Button destroy_button;
- public Bookmark (string name)
+ construct
+ {
+ bookmark_label.set_label (bookmark_name);
+ }
+
+ public Bookmark (string bookmark_name)
{
- bookmark_name = name;
- bookmark_label.set_label (name);
+ Object (bookmark_name: bookmark_name);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]