summaryrefslogtreecommitdiff
path: root/gtk/gtkgridlayout.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkgridlayout.c')
-rw-r--r--gtk/gtkgridlayout.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gtk/gtkgridlayout.c b/gtk/gtkgridlayout.c
index d449f43da1..4da0a47787 100644
--- a/gtk/gtkgridlayout.c
+++ b/gtk/gtkgridlayout.c
@@ -464,17 +464,8 @@ get_spacing (GtkGridLayout *self,
{
GtkCssNode *node = gtk_widget_get_css_node (widget);
GtkCssStyle *style = gtk_css_node_get_style (node);
- GtkCssValue *border_spacing;
- int css_spacing;
- border_spacing = style->size->border_spacing;
-
- if (orientation == GTK_ORIENTATION_HORIZONTAL)
- css_spacing = _gtk_css_position_value_get_x (border_spacing, 100);
- else
- css_spacing = _gtk_css_position_value_get_y (border_spacing, 100);
-
- return css_spacing + self->linedata[orientation].spacing;
+ return style->size->_border_spacing[orientation] + self->linedata[orientation].spacing;
}
/* Calculates the min and max numbers for both orientations. */