diff options
author | Timm Bäder <mail@baedert.org> | 2017-06-17 10:59:03 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-19 21:27:14 -0400 |
commit | a73d3418bc4253725e0889705c4a60e9051b0bc5 (patch) | |
tree | bdea7646a911dd45d227d17f8ee119f97a4af981 /tests | |
parent | 8123ea8f3f97b4663f55be21b29f918c15f6ac01 (diff) | |
download | gtk+-a73d3418bc4253725e0889705c4a60e9051b0bc5.tar.gz |
layout: Remove bin_window
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testgtk.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index a7eb223683..072de84258 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -8035,18 +8035,10 @@ create_mainloop (GtkWidget *widget) static gboolean layout_draw_handler (GtkWidget *widget, cairo_t *cr) { - GtkLayout *layout; - GdkWindow *bin_window; GdkRectangle clip; - gint i,j,x,y; + gint i,j; gint imin, imax, jmin, jmax; - layout = GTK_LAYOUT (widget); - bin_window = gtk_layout_get_bin_window (layout); - - gdk_window_get_position (bin_window, &x, &y); - cairo_translate (cr, x, y); - gdk_cairo_get_clip_rectangle (cr, &clip); imin = (clip.x) / 10; |