comp.lang.ada
 help / color / mirror / Atom feed
* assertion 'GTK_IS_WIDGET (widget)' failed: how to debug?
@ 2017-01-08 10:59 hreba
  2017-01-08 12:18 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 3+ messages in thread
From: hreba @ 2017-01-08 10:59 UTC (permalink / raw)


Hi,

I have the following sequence in my program:

       obj:= last_builder.Get_Object(winname);
       if obj=null then raise findobject_Ex with
	builder_file & ": " & winname & " not found";
       end if;
       win.win := Gtk.Window.Gtk_Window (obj);
       win.win.Show_All;

When it is executed for the first time, it runs as expected. At the 
second time, the window win.win does not open and the following warning 
is printed out:

(sos:2905): Gtk-CRITICAL **: gtk_widget_show_all: assertion 
'GTK_IS_WIDGET (widget)' failed

For debugging I would like to execute the GTK macro G_OBJECT_TYPE_NAME 
but did not find anything similar in gtkada.

So how would you debug this?
-- 
Frank Hrebabetzky		+49 / 6355 / 989 5070


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-08 13:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-08 10:59 assertion 'GTK_IS_WIDGET (widget)' failed: how to debug? hreba
2017-01-08 12:18 ` Dmitry A. Kazakov
2017-01-08 13:49   ` hreba

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