comp.lang.ada
 help / color / mirror / Atom feed
From: hreba <f_hreba@yahoo.com.br>
Subject: assertion 'GTK_IS_WIDGET (widget)' failed: how to debug?
Date: Sun, 8 Jan 2017 11:59:03 +0100
Date: 2017-01-08T11:59:03+01:00	[thread overview]
Message-ID: <edekbnFa499U1@mid.individual.net> (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


             reply	other threads:[~2017-01-08 10:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-08 10:59 hreba [this message]
2017-01-08 12:18 ` assertion 'GTK_IS_WIDGET (widget)' failed: how to debug? Dmitry A. Kazakov
2017-01-08 13:49   ` hreba
replies disabled

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