* 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
* Re: assertion 'GTK_IS_WIDGET (widget)' failed: how to debug? 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 0 siblings, 1 reply; 3+ messages in thread From: Dmitry A. Kazakov @ 2017-01-08 12:18 UTC (permalink / raw) On 2017-01-08 11:59, hreba wrote: > For debugging I would like to execute the GTK macro G_OBJECT_TYPE_NAME > but did not find anything similar in gtkada. Get_Type + Type_Name > So how would you debug this? In my case there nothing to debug. I don't use GLADE. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: assertion 'GTK_IS_WIDGET (widget)' failed: how to debug? 2017-01-08 12:18 ` Dmitry A. Kazakov @ 2017-01-08 13:49 ` hreba 0 siblings, 0 replies; 3+ messages in thread From: hreba @ 2017-01-08 13:49 UTC (permalink / raw) On 01/08/2017 01:18 PM, Dmitry A. Kazakov wrote: > On 2017-01-08 11:59, hreba wrote: > >> For debugging I would like to execute the GTK macro G_OBJECT_TYPE_NAME >> but did not find anything similar in gtkada. > > Get_Type + Type_Name > >> So how would you debug this? > > In my case there nothing to debug. I don't use GLADE. > Calling these function I get a STORAGE_ERROR. Now I have at least an idea how to continue. Thanks for the hint. -- 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