GtkOverlay inside AdwToastOverlay

I cannot display content nested inside a GtkOverlay itselfs inside a AdwToastOverlay.

basically, I have this structure:

  <object class="AdwApplicationWindow">
    <child>
      <object class="AdwToastOverlay" id="my-toast-overlay">
        <property name="child">
          <object class="GtkOverlay">
            <property name="child">
              <object class="GtkBox" id="my-content">
              ...
              </object>
            </property>
            <child>
              <object class="GtkBox" id="my-overlay">
              ...
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
  </object>
  • I can display a toast overlay using my-toast-overlay
  • I can see my-overlaycontent
  • but I cannot see my-content

Outside of these overlays my-content displays fine.

Is it impossible to display content nested inside a GtkOverlay itselfs inside a AdwToastOverlay or am I doing something wrong ?

<child type="overlay">

1 Like

Ah, yes. Perfect, thanks a lot!

By the way, is there documentation of the UI+Adw/Gtk document format (not a tutorial) available where these kinds of subtle, unguessable details would be mentioned?

Gtk.Overlay it’s documented here

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.