diff options
author | Benjamin Otte <otte@redhat.com> | 2016-10-06 23:55:53 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-10-16 18:17:21 +0200 |
commit | eace2cf4219bbb1be376567f804ae2e0c3b5821a (patch) | |
tree | 1e74bd8c75c7105e217e0d639c5dc6e0742536c4 /testsuite | |
parent | bae12e6a2fdb1ed58f159f0a9606364480efea99 (diff) | |
download | gtk+-eace2cf4219bbb1be376567f804ae2e0c3b5821a.tar.gz |
API: Remove gdk_window_set_background()
Backgrounds are always transparent black.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/reftests/reftest-snapshot.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c index cd3cee7d08..eb69e20ffc 100644 --- a/testsuite/reftests/reftest-snapshot.c +++ b/testsuite/reftests/reftest-snapshot.c @@ -96,7 +96,6 @@ static cairo_surface_t * snapshot_widget (GtkWidget *widget, SnapshotMode mode) { cairo_surface_t *surface; - cairo_pattern_t *bg; cairo_t *cr; g_assert (gtk_widget_get_realized (widget)); @@ -144,12 +143,6 @@ snapshot_widget (GtkWidget *widget, SnapshotMode mode) } break; case SNAPSHOT_DRAW: - bg = gdk_window_get_background_pattern (gtk_widget_get_window (widget)); - if (bg) - { - cairo_set_source (cr, bg); - cairo_paint (cr); - } gtk_widget_draw (widget, cr); break; default: |