sysprof: improve placement of informative

This commit is contained in:
Christian Hergert
2023-07-13 16:26:54 -07:00
parent cea61c0868
commit 882755f267

View File

@ -420,13 +420,13 @@ sysprof_time_scrubber_size_allocate (GtkWidget *widget,
if (self->motion_x + min_req.width < gtk_widget_get_width (GTK_WIDGET (self))) if (self->motion_x + min_req.width < gtk_widget_get_width (GTK_WIDGET (self)))
gtk_widget_size_allocate (GTK_WIDGET (self->informative), gtk_widget_size_allocate (GTK_WIDGET (self->informative),
&(GtkAllocation) { &(GtkAllocation) {
self->motion_x, self->motion_y, self->motion_x, height - min_req.height,
min_req.width, min_req.height min_req.width, min_req.height
}, -1); }, -1);
else else
gtk_widget_size_allocate (GTK_WIDGET (self->informative), gtk_widget_size_allocate (GTK_WIDGET (self->informative),
&(GtkAllocation) { &(GtkAllocation) {
self->motion_x - min_req.width, self->motion_y, self->motion_x - min_req.width, height - min_req.height,
min_req.width, min_req.height min_req.width, min_req.height
}, -1); }, -1);
} }