Open d47081 opened 2 weeks ago
I believe the answer is here src/Gdk/GdkEventKey.cpp
but not sure where exactly must I fix it as this notice usually means that class operates with not existing entities (e.g. not defined in constructor). Is any parent object for PHP-GTK3 or PHP-CPP issue?
warnings is not a problem to be fixed. Gtk like warnings alot, and with new PHPs, somethings trigge warnings too!
this causing any real error?
it is problem because event does not (re)define GdkEvent class properly.
in my case it spams debug window where I can't find another important warnings and silintizing them is definitively ugly practic and not a solution. why do you advice that instead of resolve the issue?
I found these lines, maybe somewhere here https://github.com/scorninpc/php-gtk3/blob/master/main.cpp#L507 but no success yet because I don't understand on which level GdkEvent construction start.
ah ok, i understand!
can you provide a simple code with the problem?
Already found the reason, give me few minutes for PR!
can you provide a simple code with the problem?
This issue happens on:
Common GdkEvent class (that implements GdkEventButton, GdkEventKey) also drop warnings for type
, key
, button
.
I have just found and completed variables initiation in PR #110 for GdkEvent, GdkEventButton, GdkEventKey
all values are nullable by default because at this point we need var init only.
of course it contain implemented features only, and as I can see the classes still under development. anyway problem resolved, the event dump looks well.
additional details in PR description o/
have some warnings when activating only this event:
Debian 12
Originally posted by @d47081 in https://github.com/scorninpc/php-gtk3/issues/97#issuecomment-2055337355