[Gambas-user] Bug in tray icon menu?
Cristiano Guadagnino
criguada at gmail.com
Tue Oct 12 14:13:53 CEST 2021
Hi all,
I think I have found a bug in the tray icon code.
If you add a popup menu to a tray icon control programmatically (i.e. by
code) and you have a submenu with items whose Radio property is true, the
click() event is not raised and radios are not mutually exclusive (i.e. you
can have more than one item with the radio button checked).
I am adding a sample project.
In the project you see a couple menus, added to the main window, to a menu
button and to the tray icon. They all work correctly but for the one
attached to the tray icon.
And here are my system infos:
[System]
Gambas=3.16.3
OperatingSystem=Linux
Kernel=5.14.6-2-default
Architecture=x86_64
Distribution=openSUSE Tumbleweed 20211008
Desktop=KDE5
Font=Noto Sans,10
Scale=7
Theme=breeze
Language=it_IT.UTF-8
Memory=11666M
[Libraries]
Cairo=/usr/lib64/libcairo.so.2.11600.0
Curl=/usr/lib64/libcurl.so.4.7.0
DBus=/usr/lib64/libdbus-1.so.3.19.13
GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.33
GDK3=/usr/lib64/libgdk-3.so.0.2404.26
GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1805.0
GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.33
GTK+3=/usr/lib64/libgtk-3.so.0.2404.26
OpenGL=/usr/lib64/libGL.so.1.7.0
Poppler=/usr/lib64/libpoppler.so.112.0.0
Poppler=/usr/lib64/libpoppler.so.83.0.0
Poppler=/usr/lib64/libpoppler.so.92.0.0
Poppler=/usr/lib64/libpoppler.so.93.0.0
QT4=/usr/lib64/libQtCore.so.4.8.7
QT5=/usr/lib64/libQt5Core.so.5.15.2
SDL=/usr/lib/libSDL-1.3.so.0.0.0
SDL=/usr/lib64/libSDL-1.2.so.0.11.4
SQLite=/usr/lib64/libsqlite3.so.0.8.6
[Environment]
AUDIODRIVER=pulseaudio
BASH_FUNC_mc%%=() { . /usr/share/mc/mc-wrapper.sh
}
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
CPU=x86_64
CSHEDIT=emacs
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.opensuse.org/
DESKTOP_SESSION=/usr/share/xsessions/plasma5
DISPLAY=:0
EDITOR=/usr/bin/joe
FROM_HEADER=
FTP_PROXY=http://127.0.0.1:3128
GB_GUI=gb.qt5
GPG_TTY=not a tty
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.config/gtkrc-2.0
GTK_IM_MODULE=ibus
GTK_MODULES=canberra-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.config/gtkrc
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
HISTSIZE=1000
HOME=<home>
HOST=<hostname>
HOSTNAME=<hostname>
HOSTTYPE=x86_64
HTTPS_PROXY=http://127.0.0.1:3128
HTTP_PROXY=http://127.0.0.1:3128
INPUT_METHOD=ibus
JAVA_BINDIR=/usr/lib/jvm/zulu-11/bin
JAVA_HOME=/usr/lib/jvm/zulu-11
JAVA_ROOT=/usr/lib/jvm/zulu-11
JDK_HOME=/usr/lib/jvm/zulu-11
JRE_HOME=/usr/lib64/jvm/java-11-openjdk-11
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=it_IT.UTF-8
LANGUAGE=it_IT.UTF-8
LC_ALL=it_IT.UTF-8
LESS= -R
LESSCLOSE=lessclose.sh %s %s
LESSKEY=/usr/etc/lesskey.bin
LESSOPEN=| /usr/bin/src-hilite-lesspipe.sh %s
LESS_ADVANCED_PREPROCESSOR=no
LOGNAME=<user>
MACHTYPE=x86_64-suse-linux
MAIL=/var/spool/mail/<user>
MANPATH=/usr/local/man:/usr/share/man
MANPATHISSET=yes
MINICOM=-c on
MORE=-sl
NO_PROXY=localhost, 127.0.0.1, .bankadati.it, .bkd, .gcv.dom
OSTYPE=linux
PAGER=less
PATH=<home>/bin:/usr/local/bin:/usr/bin:/bin:/snap/bin:/usr/sbin
PROFILEREAD=true
PWD=<home>
PYTHONSTARTUP=/etc/pythonstart
QEMU_AUDIO_DRV=pa
QT4_IM_MODULE=xim
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_IM_MODULE=ibus
QT_IM_SWITCHER=imsw-multi
QT_LOGGING_RULES=*.debug=false
SDK_HOME=/usr/lib/jvm/zulu-11
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2872,unix/<hostname>:/tmp/.ICE-unix/2872
SHELL=/bin/bash
SHLVL=0
SOCKS5_SERVER=
SOCKS_PROXY=
SSH_AGENT_PID=2816
SSH_ASKPASS=/usr/libexec/ssh/ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-8uaxT9FzIIMI/agent.2691
SYSTEMD_EXEC_PID=2656
TERM=xterm
TZ=:/etc/localtime
USER=<user>
VDPAU_DRIVER=va_gl
WINDOWMANAGER=/usr/bin/startplasma-x11
XAUTHLOCALHOSTNAME=<hostname>
XAUTHORITY=/run/user/1000/xauth_PWrjFn
XCURSOR_SIZE=32
XCURSOR_THEME=oreo_pink_cursors
XDG_CONFIG_DIRS=<home>/.config/kdedefaults:/etc/xdg:/usr/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XMODIFIERS=@im=ibus
XNLSPATH=/usr/share/X11/nls
XSESSION_IS_UP=yes
force_s3tc_enable=true
ftp_proxy=http://127.0.0.1:3128
gopher_proxy=
http_proxy=http://127.0.0.1:3128
https_proxy=http://127.0.0.1:3128
no_proxy=localhost, 127.0.0.1, .bankadati.it, .bkd, .gcv.dom
socks_proxy=
Best regards
Cris
[image: cloudHQ] <https://www.free-email-tracker.com> Powered by
cloudHQ <https://www.free-email-tracker.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211012/6cc382b7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MenuRadioTest.zip
Type: application/zip
Size: 19144 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211012/6cc382b7/attachment-0001.zip>
More information about the User
mailing list