jfw
New Member
Posts: 24
|
Post by jfw on Nov 25, 2021 19:47:02 GMT 1
Hi.
If starting GTK-server (2.4.5) with
gtk-server-gtk3 -fifo=$PIPE -detach -log=/tmp/gtk-server.log
and running this simple test
# make win gtk "gtk_init NULL NULL" gtk "gtk_window_new 0"; win=$GTK gtk "gtk_window_set_title $win \"TIMEOUT WARNING\"" gtk "gtk_widget_set_size_request $win 250 150" gtk "gtk_window_set_position $win GTK_WIN_POS_CENTER_ALWAYS"
# start gtk "gtk_widget_show_all $win"
# signals gtk "gtk_server_connect $win show-help 'test' 1" gtk "gtk_server_timeout 2500 $win show-help"
# main loop while true;do gtk "gtk_server_callback WAIT";sig=$GTK case "$sig" in "test") echo "test on $(date)" ;; *) echo "exit now" break ;; esac done
gtk "gtk_widget_destroy $win" gtk "gtk_server_exit"
leaves the following waring every time the signal is produced
(gtk-server-gtk3:10782): GLib-GObject-WARNING **: /build/glib2.0-pjKWYQ/glib2.0-2.48.2/./gobject/gsignal.c:3405: value location for 'gboolean' passed as NULL test on Do 25. Nov 19:32:40 CET 2021
(gtk-server-gtk3:10782): GLib-GObject-WARNING **: /build/glib2.0-pjKWYQ/glib2.0-2.48.2/./gobject/gsignal.c:3405: value location for 'gboolean' passed as NULL test on Do 25. Nov 19:32:43 CET 2021
(gtk-server-gtk3:10782): GLib-GObject-WARNING **: /build/glib2.0-pjKWYQ/glib2.0-2.48.2/./gobject/gsignal.c:3405: value location for 'gboolean' passed as NULL test on Do 25. Nov 19:32:45 CET 2021
Thx for a comment or solution.
Kind regards, jfw
|
|
|
Post by Peter on Nov 12, 2022 9:56:51 GMT 1
Hi jfw, The issue for this type of signal is fixed in the latest 2.4.7 commit, tarball is here. The cause is that the callbacked function contains 3 arguments instead of the 2 arguments which GTK-server is assuming. BR Peter
|
|
jfw
New Member
Posts: 24
|
Post by jfw on Jan 25, 2024 16:59:31 GMT 1
Hello Peter. Thanks a lot for fixing it! Kind regards, jfw
|
|