Skip to content
Snippets Groups Projects
Commit fab8d154 authored by Andre Miranda's avatar Andre Miranda Committed by Andre Miranda
Browse files

Fix Allocation size warning

parent 677755d4
No related branches found
No related tags found
No related merge requests found
......@@ -867,6 +867,9 @@ thunar_location_buttons_size_allocate (GtkWidget *widget,
if (need_sliders || buttons->fake_root_button != NULL)
{
/* to avoid warnings in gtk >= 3.20 */
gtk_widget_get_preferred_width (buttons->left_slider, &width, NULL);
child_allocation.width = buttons->slider_width;
child_allocation.x = left_slider_offset + allocation->x;
gtk_widget_size_allocate (buttons->left_slider, &child_allocation);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment