Features/GTK3/Porting/Log: Difference between revisions
No edit summary |
|||
| Line 42: | Line 42: | ||
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 = | ||