LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-09-2015, 02:01 AM   #1
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Rep: Reputation: 34
[SOLVED] Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.


Debian Jessie, standalone OpenBox.

Get this message in terminal whenever i click on Search in Synaptic Package Manager. Both, when i launch it from the OpenBox Menu (where it opens a terminal and i have to authenticate as root), and when i launch it from the terminal with sudo (i am a sudoer). It is nothing critical as everything works just fine as far as i can tell but it gives me a nagging feeling at the back of my head that i am doing something wrong. I have installed gtk2-engines, even some of those gir12 polkits for good measure but this annoyance won't go away.

Tip for newbies trying out a minimal install: Don't shy away from installing Synaptic, it is indispensible for installing packages without errors and meeting all dependencies. Just installed Xfe from it and it rocks. Built-in text-editor and image viewer too, and yet so featherweight! Beats me why some people still sing paeans to Thunar and Nautilus.

Last edited by mzsade; 08-09-2015 at 08:45 PM.
 
Old 08-09-2015, 02:40 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
gtk warnings and even errors are very common.
you might find that you get different errors when you change your gtk theme, and with different applications.
as long as they're only gtk errors, and your system works otherwise, and you're not a gtk theme developer... ignore them.
 
Old 08-18-2015, 12:38 AM   #3
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Original Poster
Rep: Reputation: 34
Update: Decided to splurge and installed gksu in addition to sudo after a minimal install. Opened Synaptic with
Code:
gksudo synaptic
this time..gksu was probably the "transient parent" the poor thing was looking for.
 
Old 01-20-2017, 03:55 PM   #4
flintiii
LQ Newbie
 
Registered: Jan 2017
Posts: 2

Rep: Reputation: Disabled
A bit of confusion...this is about zenity.

Greetings,

I really do not think that the error

Quote:
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Is related to the Synaptic Package manager, but rather has to do with the zenity gui it is running on.

One really shabby to fix this problem is to terminate every reference to zenity with a redirection of standard error.

Code:
zenity --info --text "Hello World" 2>/dev/null
Thank the gods we can eliminate meaningless messages!

Maybe it means something? Someone should tell us...

Flint

Last edited by flintiii; 01-20-2017 at 04:04 PM. Reason: expansion
 
Old 01-21-2017, 03:06 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by flintiii View Post
Greetings,

I really do not think that the error

Is related to the Synaptic Package manager, but rather has to do with the zenity gui it is running on.

One really shabby to fix this problem is to terminate every reference to zenity with a redirection of standard error.

Code:
zenity --info --text "Hello World" 2>/dev/null
Thank the gods we can eliminate meaningless messages!

Maybe it means something? Someone should tell us...
synaptic is NOT a zenity script!!!

also, i get the same message (it's not even a warning) when i run synaptic without superuser privileges, but not with e.g. sudo. just saying.
 
Old 01-21-2017, 07:23 AM   #6
flintiii
LQ Newbie
 
Registered: Jan 2017
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
synaptic is NOT a zenity script!!!
Greetings,

But it is the same error message that zenity is giving (try the code below):
Code:
zenity --info --text "Hello World"
So the conclusion is that zenity and synaptic are somehow related. I believe that this is in their gui interface.

Regards,

Flintiii
 
Old 01-21-2017, 02:57 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by flintiii View Post
But it is the same error message that zenity is giving (try the code below):
Code:
zenity --info --text "Hello World"
So the conclusion is that zenity and synaptic are somehow related.
related, yes.
they both use gtk. it is a gtk-message we are talking about.
but synaptic still doesn't use zenity.

Quote:
I believe that this is in their gui interface.
well, I believe that this one is in your gui interface.
(sorry, no offense, just a play on words i couldn't resist)

Last edited by ondoho; 01-22-2017 at 03:09 AM.
 
Old 01-21-2017, 06:26 PM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
in the gtk toolkit when poping up a dialog you have the option of supplying a parent window ( the 'transient for..' bit), this helps window mangers to keep the dialog and main windows in sync and keeps the dialog box on top of the main window ( presuming the dialog is supposed to be always above the main window ), presumably the gtk devs meant for this to become compulsory at some point but never gotbaround to it, it's just a warning and can be safely ignored, there are many such in gtk, it woud be nice if you could turn off gtk warnings globaly but you can't.
 
Old 01-15-2018, 09:58 AM   #9
JuanVF
LQ Newbie
 
Registered: Jan 2018
Posts: 1

Rep: Reputation: Disabled
X vs Wayland

At Debian 9.3.0 with Gnome, if you open a terminal and launch a gtk program -ej. calibre- the warning exist: "GtkDialog mapped without a transient parent. This is discouraged."


Ok, but IF you launch Gnome in Wayland, you open a terminal and launch again gtk program -calibre- the warning NOT exist.

I think that the warning is for transition propoues.

Bye, enjoy you day.
 
Old 04-22-2018, 11:06 PM   #10
matrixmike
LQ Newbie
 
Registered: Apr 2018
Location: near Melbourne, Australia
Distribution: X L ubuntu , mint
Posts: 2

Rep: Reputation: Disabled
The posts were good pointers to resolving the issue. It might be a warning but I, as a keen amateur developer, will pursue the matter in my own code. It will teach me more about gtk dev.
 
  


Reply

Tags
gtkdialog, synaptic


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network device Memory mapped or Port mapped ?? Bignon Linux - Hardware 0 10-20-2009 08:36 AM
File descriptors shared between child and parent causing parent to hang. bharadiaam Linux - Newbie 1 03-02-2009 01:01 AM
Can sub processing modify the parent's Gtk Widgets? asnoka Programming 2 12-24-2005 03:35 AM
how to know transient services ? zameer_india Linux - General 3 02-16-2005 01:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration