[gtk+] Fix clip of more windowed widgets
- From: Timm Bäder <baedert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+] Fix clip of more windowed widgets
 
- Date: Fri, 28 Oct 2016 17:34:12 +0000 (UTC)
 
commit 5c99f7a6702fb32ae39001f9501014244db42e33
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 28 18:10:22 2016 +0200
    Fix clip of more windowed widgets
 gtk/gtkflowbox.c |    2 ++
 gtk/gtklistbox.c |    4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 1866a69..fd83a48 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -511,6 +511,8 @@ gtk_flow_box_child_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);
 }
 
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 3bc3257..e4ee1ba 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -2680,7 +2680,9 @@ gtk_list_box_size_allocate (GtkWidget     *widget,
                            gtk_widget_get_allocated_baseline (widget),
                            &clip);
 
-  _gtk_widget_set_simple_clip (widget, &clip);
+  clip.x += allocation->x;
+  clip.y += allocation->y;
+  gtk_widget_set_clip (widget, &clip);
 }
 
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]