Features/GTK3/Porting/InfoSlicer: Difference between revisions
No edit summary |
|||
| Line 41: | Line 41: | ||
Gdk.EventType._2BUTTON_PRESS | Gdk.EventType._2BUTTON_PRESS | ||
Gdk.EventType._3BUTTON_PRESS | Gdk.EventType._3BUTTON_PRESS | ||
== Gtk.TextBuffer.get_slice() needs a new argument == | |||
We need a new argument to indicate if we want to include the ''hidden_chars'' as well. It wasn't required in gtk2 and by default it was '''True''' | |||
buf = gtk.TextBuffer() | |||
buf.get_slice(start, end) | |||
replaced by: | |||
buf = Gtk.TextBuffer() | |||
buf.get_slice(start, end, include_hidden_chars) | |||
= Missing / Problematic things (not ported yet) = | = Missing / Problematic things (not ported yet) = | ||