You are not logged in.

#1 2023-11-01 10:18:20

nameiwillforget
Member
Registered: 2019-08-10
Posts: 27

[Solved] Changing default widget toolkit

I've been using Gnome as a GUI for a long time but more recently switched to StumpWM. However, Stump seems to interact badly with GTK. For instance, Stump's binwarp module enables mouse emulation using the keys, but clicks don't register at all in many programs that use GTK. I didn't have any such problems with Qt, so I'd like to change as many of my programs to using Qt instead of GTK, or even no such toolkit at all if it's not required. However, while some programs are in the repositories in two versions, a GTK and a Qt one, I think there has to be a setting somewhere that specifies GTK as my default widget toolkit, because, for instance, my Emacs is self-compiled without any manual configurations but still seems to have been compiled using GTK. So my question is, is there such a setting that for instance advises compilers to use GTK and how can I change it?

Last edited by nameiwillforget (2023-11-02 21:48:53)

Offline

#2 2023-11-01 22:13:44

teckk
Member
Registered: 2013-02-21
Posts: 588

Re: [Solved] Changing default widget toolkit

There is no default toolkit. Programs are written to use a tool kit for their interface and more. You can't change the toolkit that a program uses. Not without a complete rewrite of the code base. Gtk is c, Qt is cpp. So they wil use gcc and g++.

emacs has a depends on pgtk, gtk3
https://gitlab.archlinux.org/archlinux/ … type=heads

cd ../${pkgbase}-${pkgver}-wayland
  ./configure \
    --with-pgtk \
    --with-native-compilation=aot \
    $_confflags
  make bootstrap
}

If you don't want to use programs that use gtk, then look for qt made programs that do what you want. Or fltk, tcl, tkinter, or no gui at all.

https://github.com/stumpwm/stumpwm
https://wiki.archlinux.org/index.php/Li … plications

Offline

#3 2023-11-02 07:17:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,630

Re: [Solved] Changing default widget toolkit

Try to "export GDK_CORE_DEVICE_EVENTS=1"

Online

Board footer

Powered by FluxBB