It is currently Thu Nov 14, 2019 8:35 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: PB 5.40 Gtk Warning - MessageRequester()
PostPosted: Thu Sep 10, 2015 2:46 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 419
Location: Canada
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

Quote:
[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 !


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.40 Gtk Warning - MessageRequester()
PostPosted: Tue Sep 15, 2015 4:23 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 07, 2013 11:35 am
Posts: 419
Location: Canada
Anyone ?

_________________
The Stone Age did not end due to a shortage of stones !


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.40 Gtk Warning - MessageRequester()
PostPosted: Tue Sep 15, 2015 1:34 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Dec 18, 2004 11:56 am
Posts: 441
Location: Vienna - Austria
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.40 Gtk Warning - MessageRequester()
PostPosted: Sun Sep 20, 2015 1:35 am 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1459
Location: North by Northwest
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:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.40 Gtk Warning - MessageRequester()
PostPosted: Sun Sep 20, 2015 8:50 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13627
Location: France
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.40 Gtk Warning - MessageRequester()
PostPosted: Sun Sep 20, 2015 10:43 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Dec 18, 2004 11:56 am
Posts: 441
Location: Vienna - Austria
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.40 Gtk Warning - MessageRequester()
PostPosted: Mon Sep 21, 2015 6:10 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1459
Location: North by Northwest
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:
This is discouraged.

If possible...

_________________

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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye