rbtylee / zarfy

Zarfy is a gtk gui for changing your screen resolution. Works well with multiple monitor setups.
GNU General Public License v3.0
5 stars 1 forks source link

Change GTK2 to GTK3 #1

Open arteze opened 10 months ago

arteze commented 10 months ago

I installed GTK3 and now zarfy does not work, I would like the program to stop using GTK2 and renew itself to GTK3.

rbtylee commented 10 months ago

I am rather occupied at the moment with creating a Debian version of Bodhi Linux. I have labeled this as "help wanted" and as a "good first issue". If no one helps in time I will get to it as I rather like the program and agree it should be ported to GTK3.

rbtylee commented 10 months ago

When I first worked on this, I only did enough to ensure it compiled and semi-worked on Ubuntu 18.04 (BL5.0). I never really meant to take over maintaining it, I just wanted to save my work someplace safer than locally. When you filed your issue I noticed it no longer compiled on Ubuntu 22.04 or Debian 12. I have fixed it to where it does, but I notice various issues not to mention a large number of depreciated GTK2 functions being used, To port it to GTK3 involves fixing all this in the process and some degree of grunt work. Dealing with what I consider issues involves a deeper understanding of this code and how it all works.

I am not saying I will not try to fix it all but just that it may take some time and other things have priority over it.

arteze commented 10 months ago

Surprisingly, after making some changes to the system, zarfy now works for me.

Although I have some bugs that I'm trying to fix.

zarfy

(zarfy:24472): Gtk-WARNING **: 16:16:18.480: Imposible encontrar el motor de temas en la ruta al _modulo: «xfce»,

(zarfy:24472): Gtk-WARNING **: 16:16:18.480: Imposible encontrar el motor de temas en la ruta al _modulo: «xfce»,

(zarfy:24472): Gtk-WARNING **: 16:16:18.480: Imposible encontrar el motor de temas en la ruta al _modulo: «xfce»,
'g_io_module_load': /usr/lib/gvfs/modules/libvfs-test.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libvfs-test.so
'g_io_module_load': /usr/lib/gvfs/modules/libfile.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libfile.so
'g_io_module_load': /usr/lib/gvfs/modules/libdns-sd.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libdns-sd.so
'g_io_module_load': /usr/lib/gvfs/modules/libcomputer.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libcomputer.so
'g_io_module_load': /usr/lib/gvfs/modules/libsftp.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libsftp.so
'g_io_module_load': /usr/lib/gvfs/modules/libbzip2.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libbzip2.so
'g_io_module_load': /usr/lib/gvfs/modules/libgzip.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libgzip.so
'g_io_module_load': /usr/lib/gvfs/modules/libnntp.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libnntp.so
'g_io_module_load': /usr/lib/gvfs/modules/libsmb.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libsmb.so
'g_io_module_load': /usr/lib/gvfs/modules/libtar.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libtar.so
'g_io_module_load': /usr/lib/gvfs/modules/libhttp.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libhttp.so
'g_io_module_load': /usr/lib/gvfs/modules/libnetwork.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libnetwork.so
'g_io_module_load': /usr/lib/gvfs/modules/libftp.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gvfs/modules/libftp.so
tim-tm commented 10 months ago

Hi, I will port zarfy to Gtk3. The development status can be found here: https://github.com/tim-tm/zarfy3. I am going to make a pull request as soon as I am finished.

tim-tm commented 10 months ago

Edit: Since there are major changes between Gtk2 and Gtk3, I decided to entirely rewrite the utility instead of simply porting it. This will probably take a bit more time.

rbtylee commented 10 months ago

Yes thanks for your interest :D I already did a little research into this issue and came to the same conclusion. Meanwhile, I am slowly working on fixing the existing gtk2 code base. My main focus is the stuff I do for Bodhi Linux so this is hardly a priority right now for me.

tim-tm commented 10 months ago

The only reason I've found this issue is because you have labelled it with "good first issue" and "help wanted". Anyways, I have -- at least some -- time right now since I am still on vacation (yes I am still in school). Have -- at least a bit of -- fun working on Bodhi Linux, I will comment down here as soon as I've got something to work with.