Re: [gedit-list] [Help Needed] How to get the buffer of a newly opened file from a gedit plugin file?



I tried, it's still not fetching the buffer.

tab = self.window.create_tab_from_location(Gio.file_new_for_path(file_path), None, line_number, 0, False, True)
view = tab.get_view()
buffer = view.get_buffer()

 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]