Results 1 to 2 of 2

Thread: [Gtk] How to remove and add back a widget to container?

  1. #1
    Join Date
    Nov 2010
    Location
    Down the rabbit hole
    Beans
    435
    Distro
    Ubuntu Development Release

    [Gtk] How to remove and add back a widget to container?

    Hi,
    I remove a previously added widget to a Gtk::HBox this way:
    remove(*widget);
    delete widget;
    widget = NULL;

    then add one back:
    widget = new Gtk::Button(...);
    pack_start(*widget, false, false);

    but nothing happens, the new widget doesn't appear. Any ideas?
    Your ads here, just 9.99$/week !!

  2. #2
    Join Date
    Apr 2011
    Location
    La La Land
    Beans
    226

    Re: [Gtk] How to remove and add back a widget to container?

    Did you mean to mark this as solved?
    "I would love to change the world, but they won't give me the source code"

    "Mac users swear by their Mac, PC users swear at their PC."

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •