mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
sysprof: improve placement of informative
This commit is contained in:
@ -357,9 +357,9 @@ sysprof_time_scrubber_measure (GtkWidget *widget,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_time_scrubber_size_allocate (GtkWidget *widget,
|
sysprof_time_scrubber_size_allocate (GtkWidget *widget,
|
||||||
int width,
|
int width,
|
||||||
int height,
|
int height,
|
||||||
int baseline)
|
int baseline)
|
||||||
{
|
{
|
||||||
SysprofTimeScrubber *self = (SysprofTimeScrubber *)widget;
|
SysprofTimeScrubber *self = (SysprofTimeScrubber *)widget;
|
||||||
graphene_rect_t area;
|
graphene_rect_t area;
|
||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user