Menu

#1243 Touchpad zooming is broken (linux, gtk3)

Undefined
invalid
nobody
Bug_Report
2022-03-26
2022-03-23
sparky
No

While zooming [CTRL] + [Touchpad scroll], the zoom "steps" is increased/decreased by far too
much.

If I hold [ctrl] and scroll up/down on the touchpad (carefully) the scaling goes to min / max
instantly. It is impossible to set a proper zoom level without using an external usb-mouse.

This seems to be related to wxWidgets being linked to libgtk-3.0.

I have tested the Codeblocks distro packages on:
- Fedora 35 (Gnome, Wayland)
- Ubuntu 20.04 (Gnome, X11)
- Ubuntu 20.04 (KDE, X11)
... and wxWidgets are all linked against libgtk-3.0, and shows the same problem.

If I compile Codeblocks-20.03 and wxWidgets-3.0.5 and link with libgtk-2.0 then the zooming works.

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2022-03-23
    • labels: touchpad zoom scroll --> touchpad zoom scroll, gtk3
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-24
    • status: open --> invalid
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-24

    That is a bug in GTK3 itself, zooming with the mouse wheel works OK.

    See this issue for example.

     
  • sparky

    sparky - 2022-03-24

    Maybe it is, but it is not something that will be fixed in the near future.. The issue is marked as closed...

    Why not make an additional build of Codeblocks & wxWidgets that is compiled and linked with gtk-2.0?

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-24

    Currently there are no builds of any kind for Linux.

    You can build your own version downloading the source code from SVN, editing the CodeBlocks_wx30-unix.cbp project so the environment variable GTK_VERSION suit your needs and compiling the workspace with your current C::B.

    You will need to install some development libraries, check the wiki or ask in the forum if you need help.

     
  • sparky

    sparky - 2022-03-25

    What do you mean there are no builds?

    Edit: Then what is this?: http://www.codeblocks.org/downloads/binaries/

     

    Last edit: sparky 2022-03-25
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-25

    Those are old builds of the release version, if one of them suits your needs then use it.

    I am talking about the nightly builds, sometimes there are links for Linux or MAC packages but they use GTK3.

     
  • sparky

    sparky - 2022-03-25

    I am not really talking about nightly builds, or the binaries hosted on codeblocks website. I am talking about distribution builds, you know, the binary packages you install using apt on ubuntu.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-03-25

    There were some private PPA with packages, those I knew are gone or outdated. Ask in the forum.

     
    • Andrew Cottrell

      Andrew Cottrell - 2022-03-25

      Sorry to butt in, but https://downloads.codelite.org/ includes a nightly download with GTK3. I wonder if it has the same issue or not.

       
  • sparky

    sparky - 2022-03-25

    I am not talking about any private ppa. I am talking about official distro packages.

     
    • bluehazzard

      bluehazzard - 2022-03-25

      We do not maintain official distro packages (beside on our official page). The packages you install over apt get or pacman ecc.. are maintained by the official maintainer of the specific linux distribution

       
  • sparky

    sparky - 2022-03-26

    Ok, well then. I don't know how this works, but I will check with the ubuntu maintainer of this package.

    Miguel, bluehazzard: Thank you for your attention.

    Andrew: I did some quick testing. If you are talking about the distro package from apt on Ubuntu 20.04, then yes, the problem is identical.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.