Changes

Jump to navigation Jump to search
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 =
Line 42: Line 58:  
  self.clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
 
  self.clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
   −
And then, when the ''Copy'' button is pressed we should call this function (in the callback). The ''self.viewer.'''''active_log''  is a Gtk.TextBuffer
+
And then, when the ''Copy'' button is pressed we should call this function (in the callback). The ''self.viewer.'''''active_log'''  is a Gtk.TextBuffer
    
  self.viewer.active_log.copy_clipboard(self.clipboard)
 
  self.viewer.active_log.copy_clipboard(self.clipboard)
    +
= Missing things =
   −
= Missing things =
+
* Look for '''FIXME'''s and '''README'''s in the code (logviewer.py)
 +
* Searching in the log is not working due to this bug: https://bugzilla.gnome.org/show_bug.cgi?id=680597
 +
 
 +
= Useful Links =
   −
* Copy button doesn't work
+
* http://developer.gnome.org/gtk3/3.5/GtkTextIter.html#gtk-text-iter-forward-search
* Look for a '''FIXME''' in the code (logviewer.py)
+
* http://developer.gnome.org/gtk3/3.5/GtkTreeModelSort.html#gtk-tree-model-filter-convert-child-iter-to-iter
266

edits

Navigation menu