Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Debugging GTK-Warning #290

Open
elmar69 opened this issue Aug 4, 2020 · 0 comments
Open

Debugging GTK-Warning #290

elmar69 opened this issue Aug 4, 2020 · 0 comments

Comments

@elmar69
Copy link

elmar69 commented Aug 4, 2020

In Gtk3 I got into problem on debugging Gtk-Warning-messages as:

Gtk-WARNING **: 17:24:18.112: Attempting to add a widget with type GtkBox to a container of type GtkBox, but the widget is already inside a container of type GtkBox, please remove the widget from its existing container first.

I tried to setup an log-handler but it seems to be ignored for that kind ob messages.

GLib.Log.SetLogHandler (null, GLib.LogLevelFlags.All, GLibLog);
GLib.Log.SetLogHandler ("Gtk", GLib.LogLevelFlags.All, GLibLog);
GLib.Log.SetLogHandler ("GLib-GObject", GLib.LogLevelFlags.All, GLibLog);
GLib.Log.SetDefaultHandler (GLibLog);

"GLibLog" is my handler function for being able to place an break-point there.

What can help to resolve that Problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant