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

Debugging GTK-Warning #290

@elmar69

Description

@elmar69

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions