diff options
author | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-08-31 12:40:03 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-08-31 12:40:03 (GMT) |
commit | 6e503b0a24e7fca0ddb0c2d04470af2d54cbe8b0 (patch) | |
tree | 47b1c342e134ba61c1a65b1806ac79d1aa227b1c /src/sugar/sugar-preview.h | |
parent | 938e2e964824719fa2ddc76f43caa5711e4f1da9 (diff) |
Ensure that the widget is fully onscreen before taking a screenshot.
Otherwise X emits a BadMatch and gtk kills the process (!).
Fix #8220
Diffstat (limited to 'src/sugar/sugar-preview.h')
-rw-r--r-- | src/sugar/sugar-preview.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar/sugar-preview.h b/src/sugar/sugar-preview.h index 6029cc1..70ea156 100644 --- a/src/sugar/sugar-preview.h +++ b/src/sugar/sugar-preview.h @@ -50,7 +50,7 @@ struct _SugarPreviewClass { GType sugar_preview_get_type (void); void sugar_preview_take_screenshot (SugarPreview *preview, - GdkDrawable *drawable); + GtkWidget *widget); void sugar_preview_set_size (SugarPreview *preview, int width, int height); |