RajSolai / TextSnatcher

How to Copy Text from Images ? Answer is TextSnatcher !. Perform OCR operations in seconds on Linux Desktop.
https://textsnatcher.rf.gd/
GNU General Public License v3.0
1.26k stars 45 forks source link

Port to GTK4 #36

Closed tfuxu closed 1 year ago

tfuxu commented 1 year ago

This is a port of TextSnatcher to GTK4 and Granite 7. It's almost done, but there are still some things that I need to finish, like ~popover menu for languages~ (done), and a Copy from Clipboard option.

Current appearance in GNOME (updated): Screenshot from 2022-10-19 19-49-24

TextSnatcher on GTK3 in GNOME for a contrast: Screenshot from 2022-10-16 21-58-52

PS. Sorry for a messy code, I started learning Vala about 1 week ago :^)

RajSolai commented 1 year ago

Wow great !, I was thinking of port to GTK4 from today, Thanks for your contribution @tfuxu will be merging to a new branch for gtk4

tfuxu commented 1 year ago

@RajSolai Just as a note: if you are going to fix Copy from Clipboard option yourself, in GTK4 you should use read_texture_async function. You should also check a clipboard section in 3-to-4 guide here: https://docs.gtk.org/gtk4/migrating-3to4.html#replace-gtkclipboard-with-gdkclipboard