Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Features/GTK3/Porting/Log
(view source)
Revision as of 11:20, 25 July 2012
396 bytes added
,
11:20, 25 July 2012
→Code Snippets
Line 31:
Line 31:
def _sort_logfile(self, treemodel, itera, iterb, user_data=None):
def _sort_logfile(self, treemodel, itera, iterb, user_data=None):
+
+
+
== Gtk.TreeModelSort.convert_child_iter_to_iter ==
+
+
* http://developer.gnome.org/gtk3/3.5/GtkTreeModelSort.html#gtk-tree-model-sort-convert-child-iter-to-iter
+
+
The old way to do this:
+
+
log_iter = \
+
self._treeview.get_model().convert_child_iter_to_iter(None,
+
log.iter)
+
+
replaced by:
+
+
success, log_iter = \
+
self._treeview.get_model().convert_child_iter_to_iter(log.iter)
= Clipboard =
= Clipboard =
Humitos
266
edits