comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Gtl-Critical
Date: Sun, 26 Jun 2016 10:38:23 +0200
Date: 2016-06-26T10:38:23+02:00	[thread overview]
Message-ID: <nko4af$1gdd$1@gioia.aioe.org> (raw)
In-Reply-To: 576f8036$0$20643$e4fe514c@news.kpn.nl

On 2016-06-26 09:11, ldries46 wrote:
> When starting an program with GtkAda I do get the following messages
>
> (template.exe:13728): Gtk-CRITICAL **: gtk_main_quit: assertion
> 'main_loops != NULL' failed
>
> (template.exe:13728): Gtk-CRITICAL **: gtk_widget_grab_default:
> assertion 'gtk_widget_get_can_default (widget)' failed
>
> (template.exe:13728): Gdk-CRITICAL **: inner_clipboard_window_procedure:
> assertion 'success' failed
>
> (template.exe:13728): Gdk-CRITICAL **: inner_clipboard_window_procedure:
> assertion 'success' failed
>
> Is this a problem in gtk ada or do do something wrong The program a
> template for future development is running correctly as far as I see.
> The first two messages appear almost immediate the last two after some
> time, but I the only thing I did in the mean time was shifting the
> window to another position on the screen.

These look like bugs in Windows GTK caused by incompatibilities 
introduced in GTK 3.x.

It is certainly so for gtk_widget_get_can_default. This bug is in the 
dialog boxes which do not set Can_Default on any of their buttons. God 
knows why this is necessary and why this is "critical". GTK dialog boxes 
are in general broken, but you can work around of most of the problems.

For others I cannot tell for sure. Add tracing to you program to 
identify the place where the error message appear. Then you could figure 
out how to deal with that.

Remember, each new version of GTK introduces new bugs and 
incompatibilities. You cannot assume that any part of old code would work.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

      parent reply	other threads:[~2016-06-26  8:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-26  7:11 Gtl-Critical ldries46
2016-06-26  8:10 ` Gtl-Critical mockturtle
2016-06-26  8:38 ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox