Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/GTK3/Porting/InfoSlicer
(view source)
Revision as of 12:01, 5 July 2012
499 bytes added
,
12:01, 5 July 2012
→Code Snippets
Line 22:
Line 22:
'article-selected' : (GObject.SignalFlags.RUN_FIRST, None, [object]),
'article-selected' : (GObject.SignalFlags.RUN_FIRST, None, [object]),
+
+
=== Drag And Drop: drag-motion ===
+
+
* http://www.pygtk.org/pygtk2tutorial/sec-DNDMethods.html#sec-SettingUpDestinationWidget
+
* http://developer.gnome.org/gdk/2.24/gdk-Drag-and-Drop.html#GdkDragContext
+
+
The signal <tt>drag-motion</tt> works in the same way as it was working on gtk2, but the callback used by InfoSlicer should be a bit modified to use the ''new'' method:
+
+
context.drag_status(Gdk.DragAction.COPY, timestamp)
+
+
changed by:
+
+
Gdk.drag_status(context, Gdk.DragAction.COPY, timestamp)
+
== Working with threads ==
== Working with threads ==
Humitos
266
edits