Ensure that the widget is fully onscreen before taking a screenshot.

Otherwise X emits a BadMatch and gtk kills the process (!).
Fix #8220
This commit is contained in:
Marco Pesenti Gritti
2008-08-31 14:40:03 +02:00
parent 938e2e9648
commit 6e503b0a24
5 changed files with 29 additions and 7 deletions
+1 -1
View File
@@ -200,7 +200,7 @@
(c-name "sugar_preview_take_screenshot")
(return-type "none")
(parameters
'("GdkDrawable" "drawable")
'("GtkWidget" "widget")
)
)