Re: Unparenting from GtkWidget "destroy"

Kjell Ahlstedt via gtkmm-list <[email protected]> Mon, 1 Aug 2022 11:05:06 +0200
Newsgroups gmane.comp.gnome.gtkmm
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============7293473202142751217==
Content-Type: multipart/alternative;
 boundary="------------Z9G0LkfQLSy0lUMWFvEWvabT"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------Z9G0LkfQLSy0lUMWFvEWvabT
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Den 2022-07-31 kl. 00:37, skrev Baldvin Kovacs:
> I took a stab at it, PTAL. Another option is to not do this, but 
> document in both the howtos, and the documentation
> of Gtk::Widget that container-like custom widgets are not supported.
>
> Thx,
> Baldvin
>
>
I have updated the custom container example in the gtkmm tutorial, 
https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/tree/master/examples/book/custom/custom_container. 
Now it's more like a simplified vertical Box. It works well, except if 
it's a managed widget. I've noted this restriction in a comment in the 
source code. If you think it's too complicated the explain how to use a 
signal_destroy(), we can leave it at that for the moment.

Kjell

--------------Z9G0LkfQLSy0lUMWFvEWvabT
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Den 2022-07-31 kl. 00:37, skrev Baldvin
      Kovacs:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAw7jagFV5UnY_CON0hyzS2XuP577RZ=xbsnLKe60i2XprtW8g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">I took a stab at it, PTAL. Another option is to not
        do this, but document in both the howtos, and the documentation
        <div class="gmail_quote">
          <div>of Gtk::Widget that container-like custom widgets are not
            supported.</div>
          <div><br>
          </div>
          <div>Thx,</div>
          <div>Baldvin</div>
          <div><br>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <p>I have updated the custom container example in the gtkmm
      tutorial,
<a class="moz-txt-link-freetext" href="https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/tree/master/examples/book/custom/custom_container">https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/tree/master/examples/book/custom/custom_container</a>.
      Now it's more like a simplified vertical Box. It works well,
      except if it's a managed widget. I've noted this restriction in a
      comment in the source code. If you think it's too complicated the
      explain how to use a signal_destroy(), we can leave it at that for
      the moment.</p>
    <p>Kjell<br>
    </p>
  </body>
</html>

--------------Z9G0LkfQLSy0lUMWFvEWvabT--

--===============7293473202142751217==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

--===============7293473202142751217==--