Re: Refresh dialog



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.


On 2016/07/14 11:01, Kamalpreet Grewal wrote:
On Thu, Jul 14, 2016 at 6:09 PM, Phil Wolff <adiabat centurylink net> wrote:
Did  you call Gtk::Label::show() after adding the label to the dialog?
It worked. I was working on this minimal example as mentioned in my
previous email.

I aim to add a Gtk::Paned to Gtk::VBox which contains a Gtk::TreeView
whenever any row of this treeview is double-clicked. The dialog is
refreshed i.e. double clicking a row adds a Gtk::Paned as expected.
However, I am adding another Gtk::TreeView to this Gtk::Paned. But
every time Gtk::Paned shows up empty.

I have pasted the code here: http://pastebin.com/c7LWZgmv

Please help me resolve this problem.


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