PB 5.40 Gtk Warning - MessageRequester()

Linux specific forum
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

PB 5.40 Gtk Warning - MessageRequester()

Post 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
The Stone Age did not end due to a shortage of stones !
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: PB 5.40 Gtk Warning - MessageRequester()

Post by StarBootics »

Anyone ?
The Stone Age did not end due to a shortage of stones !
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: PB 5.40 Gtk Warning - MessageRequester()

Post 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 ...

Image

So, nothing really new (well maybe for MessageRequester) and nothing severe. However, I have to agree that those GTK-Warnings shouldn't be there.
Go, tell it on the mountains.
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: PB 5.40 Gtk Warning - MessageRequester()

Post 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 :

Code: Select all

set_transient_for(parent_window)
Gtk function.

But it's something that Fred or Freak have to implement.

I am to provide the public with beneficial shocks.
Alfred Hitshock
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 5.40 Gtk Warning - MessageRequester()

Post 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.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: PB 5.40 Gtk Warning - MessageRequester()

Post 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.
Go, tell it on the mountains.
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: PB 5.40 Gtk Warning - MessageRequester()

Post 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. :wink:
Besides, I've mentioned the solution. :mrgreen:
(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

Code: Select all

This is discouraged.
If possible...

I am to provide the public with beneficial shocks.
Alfred Hitshock
Post Reply