Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/GTK3/Porting
(view source)
Revision as of 09:21, 14 July 2012
296 bytes added
,
09:21, 14 July 2012
→Taking a screenshot and making a thumbnail
Line 365:
Line 365:
thumb_surface.write_to_png(png_path_or_filelike_object)
thumb_surface.write_to_png(png_path_or_filelike_object)
</pre>
</pre>
+
+
===Creating a video widget===
+
+
Haven't gotten this working yet, but some necessary changes include:
+
+
Instead of
+
window.xid
+
use
+
get_property('window').get_xid()
+
+
Instead of
+
unset_flags(gtk.DOUBLE_BUFFERED)
+
set_flags(gtk.APP_PAINTABLE)
+
use
+
set_double_buffered(False)
+
set_app_paintable(True)
== Resources ==
== Resources ==
Walter
Bureaucrats
,
Administrators
10,561
edits