[gtk+] cssstyleproperty: Expose min-width/height



commit ea69bf8c17dd5c9e7f76bf3cb4f56ec07b2e821f
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jan 14 14:45:28 2016 +0100

    cssstyleproperty: Expose min-width/height

 gtk/gtkcssstylepropertyimpl.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index 8cb51dd..b817f16 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -1630,21 +1630,21 @@ _gtk_css_style_property_init_properties (void)
 
   gtk_css_style_property_register        ("min-width",
                                           GTK_CSS_PROPERTY_MIN_WIDTH,
-                                          G_TYPE_NONE,
+                                          G_TYPE_INT,
                                           GTK_STYLE_PROPERTY_ANIMATED,
                                           GTK_CSS_AFFECTS_SIZE,
                                           minmax_parse,
-                                          NULL,
-                                          NULL,
+                                          query_length_as_int,
+                                          assign_length_from_int,
                                           _gtk_css_number_value_new (0, GTK_CSS_PX));
   gtk_css_style_property_register        ("min-height",
                                           GTK_CSS_PROPERTY_MIN_HEIGHT,
-                                          G_TYPE_NONE,
+                                          G_TYPE_INT,
                                           GTK_STYLE_PROPERTY_ANIMATED,
                                           GTK_CSS_AFFECTS_SIZE,
                                           minmax_parse,
-                                          NULL,
-                                          NULL,
+                                          query_length_as_int,
+                                          assign_length_from_int,
                                           _gtk_css_number_value_new (0, GTK_CSS_PX));
 
   gtk_css_style_property_register        ("transition-property",


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