Re: Refresh dialog



Under those conditions, the error you got is expected. That illustrates another requirement for sample code -- it should exhibit the problem you're having.

The code you posted contains the line "p->show_all_children()". That function will do just what is says -- make the children of the Paned widget visible. It will *not* make the Paned widget itself visible. Try changing that line to "p->show_all()". If that doesn't solve the problem, we'll need a sample that actually demonstrates the difficulty.

On 2016/07/14 21:12, Kamalpreet Grewal wrote:
On Fri, Jul 15, 2016 at 2:57 AM, Phil Wolff <adiabat centurylink net> wrote:
The code you posted is incomplete and does not compile. I suspect your
problem is that you didn't call Gtk::ApplicationWindow::add ( vBox ). I did,
and it shows the "Message" column title as you would expect. It does *not*
display "hello" -- since the tree contains nothing that can be selected,
the iterator is undefined. Changing the test to "if(!iter)" causes "hello"
to be displayed as well. See http://pastebin.com/EGsexKmW

If you post sample code in the future, please be sure that it will compile
and link without errors.
Thank you. That cleared few things.

I will add sample code from text time appropriately.

I did not add vBox because I have already added it in the constructor
of a class. In the same file, later in some function, I am updating
contents of the vBox. As a result, I added the Gtk::Paned to vBox only
and did not add vBox another time. If I add the vBox again, I get this
error:

gtk_box_pack: assertion 'child->parent == NULL' failed

So how to proceed to refresh vBox?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]