refactor interface
This commit is contained in:
@@ -6,20 +6,14 @@ view_install::view_install():m_button("build"),m_VBox(Gtk::ORIENTATION_VERTICAL)
|
||||
set_border_width(5);
|
||||
|
||||
add(m_VBox);
|
||||
m_ScrolledWindow.add(m_TextView);
|
||||
m_ScrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
|
||||
|
||||
m_VBox.pack_start(m_ScrolledWindow);
|
||||
m_VBox.pack_start(this->entry);
|
||||
|
||||
//Add buttons:
|
||||
m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
|
||||
m_ButtonBox.pack_start(m_button, Gtk::PACK_SHRINK);
|
||||
m_ButtonBox.set_border_width(5);
|
||||
m_ButtonBox.set_spacing(5);
|
||||
m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
|
||||
|
||||
m_refTextBuffer1 = Gtk::TextBuffer::create();
|
||||
//m_refTextBuffer1->set_text("This is the text from TextBuffer #1.");
|
||||
m_TextView.set_buffer(m_refTextBuffer1);
|
||||
show_all_children();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user