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 19:00, 13 July 2012
35 bytes removed
,
19:00, 13 July 2012
→Changes to Drag-and-Drop
Line 208:
Line 208:
===Changes to Drag-and-Drop===
===Changes to Drag-and-Drop===
Slightly different syntax:
Slightly different syntax:
−
self
.window
.drag_dest_set(Gtk.DestDefaults.ALL, [],
+
self.drag_dest_set(Gtk.DestDefaults.ALL, [],
−
Gdk.DragAction.COPY)
+
Gdk.DragAction.COPY)
−
self
.window
.drag_dest_set_target_list(None)
+
self.drag_dest_set_target_list(None)
−
self
.window
.drag_dest_add_text_targets()
+
self.drag_dest_add_text_targets()
−
self
.window
.connect('drag_data_received', self._drag_data_received)
+
self.connect('drag_data_received', self._drag_data_received)
and:
and:
Walter
Bureaucrats
,
Administrators
10,533
edits