[gnome-boxes] Finish previous commit allowing label less properties



commit 7611c9ebc9f3eb7aa19c4fcddbcc8c38ecfbf31f
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Nov 22 10:31:19 2012 +0100

    Finish previous commit allowing label less properties
    
    This lets the description be null, which is required for this to
    work.

 src/i-properties-provider.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/i-properties-provider.vala b/src/i-properties-provider.vala
index e9c88cb..6ff0b0d 100644
--- a/src/i-properties-provider.vala
+++ b/src/i-properties-provider.vala
@@ -2,7 +2,7 @@
 using Gtk;
 
 private class Boxes.Property: GLib.Object {
-    public string description { get; construct set; }
+    public string? description { get; construct set; }
     public Gtk.Widget widget { get; construct set; }
     public Gtk.Widget? extra_widget { get; construct set; }
     public bool reboot_required { get; set; }
@@ -36,7 +36,7 @@ private class Boxes.Property: GLib.Object {
         }
     }
 
-    public Property (string description, Gtk.Widget widget, Gtk.Widget? extra_widget) {
+    public Property (string? description, Gtk.Widget widget, Gtk.Widget? extra_widget) {
         base (description: description, widget: widget, extra_widget: extra_widget);
     }
 
@@ -62,7 +62,7 @@ public enum PropertyCreationFlag {
 private interface Boxes.IPropertiesProvider: GLib.Object {
     public abstract List<Boxes.Property> get_properties (Boxes.PropertiesPage page, PropertyCreationFlag flags);
 
-    protected Boxes.Property add_property (ref List<Boxes.Property> list, string name, Widget widget, Widget? extra_widget = null) {
+    protected Boxes.Property add_property (ref List<Boxes.Property> list, string? name, Widget widget, Widget? extra_widget = null) {
         var property = new Property (name, widget, extra_widget);
         list.append (property);
         return property;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]