Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/GTK3/Porting/Jukebox
(view source)
Revision as of 09:11, 13 July 2012
360 bytes added
,
09:11, 13 July 2012
→Code Snippets
Line 68:
Line 68:
index = sel_model.get_value(sel_model.get_iter(row), 0)
index = sel_model.get_value(sel_model.get_iter(row), 0)
self._playlist.pop(index)
self._playlist.pop(index)
+
+
== Sugar ObjectChooser ==
+
+
Some arguments are deprecated in the ''sugar-toolkit-gtk3'' version
+
+
chooser = ObjectChooser(_('Choose document'), self,
+
gtk.DIALOG_MODAL |
+
gtk.DIALOG_DESTROY_WITH_PARENT,
+
what_filter=mime.GENERIC_TYPE_AUDIO)
+
+
replaced by:
+
+
chooser = ObjectChooser(self, what_filter=mime.GENERIC_TYPE_AUDIO)
= Notes =
= Notes =
Humitos
266
edits