Commit 7b3de2d5 authored by Carlos Garnacho's avatar Carlos Garnacho

Make GtkHandleBox size request code use GtkStyleContext for padding

parent b062a583
......@@ -611,11 +611,19 @@ gtk_handle_box_size_request (GtkWidget *widget,
}
else
{
GtkStyleContext *context;
GtkStateFlags state;
GtkBorder padding;
context = gtk_widget_get_style_context (widget);
state = gtk_widget_get_state_flags (widget);
gtk_style_context_get_padding (context, state, &padding);
if (handle_position == GTK_POS_LEFT ||
handle_position == GTK_POS_RIGHT)
requisition->height += gtk_widget_get_style (widget)->ythickness;
requisition->height += padding.top;
else
requisition->width += gtk_widget_get_style (widget)->xthickness;
requisition->width += padding.left;
}
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment