Page 1 of 1
PB 5.40 Gtk Warning - MessageRequester()
Posted: Thu Sep 10, 2015 2:46 pm
by StarBootics
Hello,
First I'm not sure where I should post this message anyway ...
I'm testing PB 5.40 Beta 3, and apparently compiling a program in witch contain a MessageRequester() call somewhere we get this Gtk warning
[09 :16 :46] [AVERTISSEMENT] Gtk (MESSAGE): GtkDialog mapped without a transient parent. This is discouraged.
It's not critical, everything work but a message like that tell me that something is being done incorrectly in the MessageRequester() command.
What do you think ?
Best regards
StarBootics
Re: PB 5.40 Gtk Warning - MessageRequester()
Posted: Tue Sep 15, 2015 4:23 am
by StarBootics
Anyone ?
Re: PB 5.40 Gtk Warning - MessageRequester()
Posted: Tue Sep 15, 2015 1:34 pm
by Didelphodon
Those GTK-Warnings are something I'm experiencing since I'm using Purebasic on Linux. Regardless if I run a code within the IDE or a readily built executable on the commandline I frequently see those GTK-Warnings.
Example ...
So, nothing really new (well maybe for MessageRequester) and nothing severe. However, I have to agree that those GTK-Warnings shouldn't be there.
Re: PB 5.40 Gtk Warning - MessageRequester()
Posted: Sun Sep 20, 2015 1:35 am
by fsw
This warning:
StarBootics wrote:GtkDialog mapped without a transient parent. This is discouraged.
differs from the other Gtk warnings that can be ignored, and can/should be avoided.
If there is a parent window (like in the Window.pb example) this MessageRequester warning can be taken care of with the :
Gtk function.
But it's something that Fred or Freak have to implement.
Re: PB 5.40 Gtk Warning - MessageRequester()
Posted: Sun Sep 20, 2015 8:50 am
by Fred
even gedit shipped with Ubuntu has some gtk error here when launched from CLI, so I don't think it's worth the time investigating.
Re: PB 5.40 Gtk Warning - MessageRequester()
Posted: Sun Sep 20, 2015 10:43 am
by Didelphodon
Fred wrote:even gedit shipped with Ubuntu has some gtk error here when launched from CLI, so I don't think it's worth the time investigating.
Agreed. However, it might not really leave a professional impression, and that goes for gedit either.
Re: PB 5.40 Gtk Warning - MessageRequester()
Posted: Mon Sep 21, 2015 6:10 pm
by fsw
Didelphodon wrote:... it might not really leave a professional impression, and that goes for gedit either.
I concur 100%.
Only because others create poorly written programs does not mean PureBasic has to go the same route.
Besides, I've mentioned the solution.

(at least if there is a main window...)
BTW: I'm not saying that all Gtk warnings need to be eradicated, only the ones that mention
If possible...