forked from AuroraMiddleware/gtk
Fix clip position of windowed widgets
This commit is contained in:
parent
c7496b86b6
commit
acbdd5c8f2
@ -1247,6 +1247,8 @@ gtk_paned_size_allocate (GtkWidget *widget,
|
||||
gtk_widget_get_allocated_baseline (widget),
|
||||
&clip);
|
||||
|
||||
clip.x += allocation->x;
|
||||
clip.y += allocation->y;
|
||||
gtk_widget_set_clip (widget, &clip);
|
||||
}
|
||||
|
||||
|
@ -2202,6 +2202,8 @@ gtk_stack_size_allocate (GtkWidget *widget,
|
||||
allocation,
|
||||
gtk_widget_get_allocated_baseline (widget),
|
||||
&clip);
|
||||
clip.x += allocation->x;
|
||||
clip.y += allocation->y;
|
||||
|
||||
gtk_widget_set_clip (widget, &clip);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user