[gtkmm-documentation] pack_start() calls: Specify EXPAND_WIDGET explicitly.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] pack_start() calls: Specify EXPAND_WIDGET explicitly.
- Date: Wed, 3 May 2017 15:58:38 +0000 (UTC)
commit e5e87031ecdb018cd447ddb504d48fbd422dc5bc
Author: Murray Cumming <murrayc murrayc com>
Date: Wed May 3 17:57:13 2017 +0200
pack_start() calls: Specify EXPAND_WIDGET explicitly.
These are intendend to call the pack_start(child, options) method,
using the default options value of EXPAND_WIDGET, but would now
call the pack_start(child) method unless we specify the value
explicitly.
examples/book/assistant/exampleassistant.cc | 4 +-
examples/book/builder/derived/deriveddialog.cc | 2 +-
examples/book/buttons/radiobutton/radiobuttons.cc | 14 ++++----
examples/book/clipboard/simple/examplewindow.cc | 2 +-
examples/book/combobox/complex/examplewindow.cc | 2 +-
.../book/combobox/entry_complex/examplewindow.cc | 2 +-
examples/book/dialogs/aboutdialog/examplewindow.cc | 6 ++--
.../dialogs/colorchooserdialog/examplewindow.cc | 2 +-
.../dialogs/filechooserdialog/examplewindow.cc | 4 +-
.../dialogs/fontchooserdialog/examplewindow.cc | 4 +-
.../book/dialogs/messagedialog/examplewindow.cc | 4 +-
examples/book/drag_and_drop/dndwindow.cc | 4 +-
examples/book/entry/simple/examplewindow.cc | 8 ++--
examples/book/helloworld2/helloworld.cc | 4 +-
examples/book/iconview/examplewindow.cc | 2 +-
examples/book/idle/idleexample.cc | 6 ++--
examples/book/infobar/examplewindow.cc | 2 +-
examples/book/menus/popup/examplewindow.cc | 2 +-
examples/book/multithread/examplewindow.cc | 2 +-
examples/book/notebook/examplewindow.cc | 2 +-
examples/book/printing/advanced/examplewindow.cc | 4 +-
examples/book/printing/advanced/previewdialog.cc | 2 +-
examples/book/printing/simple/examplewindow.cc | 4 +-
examples/book/progressbar/examplewindow.cc | 2 +-
examples/book/range_widgets/examplewindow.cc | 18 ++++++------
examples/book/scrolledwindow/examplewindow.cc | 2 +-
examples/book/spinbutton/examplewindow.cc | 30 ++++++++++----------
examples/book/textview/examplewindow.cc | 2 +-
examples/book/timeout/timerexample.cc | 6 ++--
examples/book/toolpalette/examplewindow.cc | 4 +-
examples/book/tooltips/examplewindow.cc | 2 +-
.../book/treeview/combo_renderer/examplewindow.cc | 2 +-
.../book/treeview/drag_and_drop/examplewindow.cc | 2 +-
.../book/treeview/editable_cells/examplewindow.cc | 2 +-
examples/book/treeview/filter/examplewindow.cc | 2 +-
.../book/treeview/filter_modify/examplewindow.cc | 2 +-
examples/book/treeview/list/examplewindow.cc | 2 +-
.../book/treeview/listviewtext/examplewindow.cc | 2 +-
examples/book/treeview/modelsort/examplewindow.cc | 4 +-
examples/book/treeview/popup/examplewindow.cc | 2 +-
examples/book/treeview/tree/examplewindow.cc | 2 +-
examples/others/calendar/calendar.cc | 2 +-
examples/others/idle/idle.cc | 6 ++--
examples/others/statusbar/statusbar.cc | 6 ++--
examples/others/treemodelcustom/examplewindow.cc | 2 +-
45 files changed, 96 insertions(+), 96 deletions(-)
---
diff --git a/examples/book/assistant/exampleassistant.cc b/examples/book/assistant/exampleassistant.cc
index 0c2bdfd..77b650e 100644
--- a/examples/book/assistant/exampleassistant.cc
+++ b/examples/book/assistant/exampleassistant.cc
@@ -26,8 +26,8 @@ ExampleAssistant::ExampleAssistant()
set_title("Gtk::Assistant example");
set_default_size(400, 300);
- m_box.pack_start(m_label1);
- m_box.pack_start(m_entry);
+ m_box.pack_start(m_label1, Gtk::PackOptions::EXPAND_WIDGET);
+ m_box.pack_start(m_entry, Gtk::PackOptions::EXPAND_WIDGET);
append_page(m_box);
append_page(m_check);
diff --git a/examples/book/builder/derived/deriveddialog.cc b/examples/book/builder/derived/deriveddialog.cc
index f115229..81db893 100644
--- a/examples/book/builder/derived/deriveddialog.cc
+++ b/examples/book/builder/derived/deriveddialog.cc
@@ -40,7 +40,7 @@ DerivedDialog::DerivedDialog(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Bu
// Show an icon.
auto pImage = Gtk::manage(new Gtk::Image());
pImage->set_from_icon_name(is_glad ? "face-smile" : "face-sad", Gtk::BuiltinIconSize::DIALOG);
- get_content_area()->pack_start(*pImage);
+ get_content_area()->pack_start(*pImage, Gtk::PackOptions::EXPAND_WIDGET);
}
DerivedDialog::~DerivedDialog()
diff --git a/examples/book/buttons/radiobutton/radiobuttons.cc
b/examples/book/buttons/radiobutton/radiobuttons.cc
index d9c40dc..e9b65f0 100644
--- a/examples/book/buttons/radiobutton/radiobuttons.cc
+++ b/examples/book/buttons/radiobutton/radiobuttons.cc
@@ -38,24 +38,24 @@ RadioButtons::RadioButtons() :
add(m_Box_Top);
//Put the inner boxes and the separator in the outer box:
- m_Box_Top.pack_start(m_Box1);
- m_Box_Top.pack_start(m_Separator);
- m_Box_Top.pack_start(m_Box2);
+ m_Box_Top.pack_start(m_Box1, Gtk::PackOptions::EXPAND_WIDGET);
+ m_Box_Top.pack_start(m_Separator, Gtk::PackOptions::EXPAND_WIDGET);
+ m_Box_Top.pack_start(m_Box2, Gtk::PackOptions::EXPAND_WIDGET);
// Set the inner boxes' margins
m_Box1.set_margin(10);
m_Box2.set_margin(10);
// Put the radio buttons in Box1:
- m_Box1.pack_start(m_RadioButton1);
- m_Box1.pack_start(m_RadioButton2);
- m_Box1.pack_start(m_RadioButton3);
+ m_Box1.pack_start(m_RadioButton1, Gtk::PackOptions::EXPAND_WIDGET);
+ m_Box1.pack_start(m_RadioButton2, Gtk::PackOptions::EXPAND_WIDGET);
+ m_Box1.pack_start(m_RadioButton3, Gtk::PackOptions::EXPAND_WIDGET);
// Set the second button active
m_RadioButton2.set_active();
// Put Close button in Box2:
- m_Box2.pack_start(m_Button_Close);
+ m_Box2.pack_start(m_Button_Close, Gtk::PackOptions::EXPAND_WIDGET);
// Make the button the default widget
m_Button_Close.set_can_default();
diff --git a/examples/book/clipboard/simple/examplewindow.cc b/examples/book/clipboard/simple/examplewindow.cc
index 669f0c4..36a1cac 100644
--- a/examples/book/clipboard/simple/examplewindow.cc
+++ b/examples/book/clipboard/simple/examplewindow.cc
@@ -31,7 +31,7 @@ ExampleWindow::ExampleWindow()
m_VBox.pack_start(m_Label, Gtk::PackOptions::SHRINK);
//Fill Grid:
- m_VBox.pack_start(m_Grid);
+ m_VBox.pack_start(m_Grid, Gtk::PackOptions::EXPAND_WIDGET);
m_Grid.set_row_homogeneous(true);
m_Grid.set_column_homogeneous(true);
m_Grid.attach(m_ButtonA1, 0, 0, 1, 1);
diff --git a/examples/book/combobox/complex/examplewindow.cc b/examples/book/combobox/complex/examplewindow.cc
index 06ce985..1643368 100644
--- a/examples/book/combobox/complex/examplewindow.cc
+++ b/examples/book/combobox/complex/examplewindow.cc
@@ -66,7 +66,7 @@ ExampleWindow::ExampleWindow()
m_Combo.pack_start(m_Columns.m_col_name);
//An example of adding a cell renderer manually,
- //instead of using pack_start(model_column)
+ //instead of using pack_start(model_column, Gtk::PackOptions::EXPAND_WIDGET)
//so we have more control:
m_Combo.set_cell_data_func(m_cell,
sigc::mem_fun(*this, &ExampleWindow::on_cell_data_extra));
diff --git a/examples/book/combobox/entry_complex/examplewindow.cc
b/examples/book/combobox/entry_complex/examplewindow.cc
index ee9394a..2f6c957 100644
--- a/examples/book/combobox/entry_complex/examplewindow.cc
+++ b/examples/book/combobox/entry_complex/examplewindow.cc
@@ -58,7 +58,7 @@ ExampleWindow::ExampleWindow()
//Add the model columns to the Combo (which is a kind of view),
//rendering them in the default way:
//This is automatically rendered when we use set_entry_text_column().
- //m_Combo.pack_start(m_Columns.m_col_id);
+ //m_Combo.pack_start(m_Columns.m_col_id, Gtk::PackOptions::EXPAND_WIDGET);
m_Combo.pack_start(m_Columns.m_col_name);
m_Combo.set_entry_text_column(m_Columns.m_col_id);
diff --git a/examples/book/dialogs/aboutdialog/examplewindow.cc
b/examples/book/dialogs/aboutdialog/examplewindow.cc
index 3297ff9..6d8eb73 100644
--- a/examples/book/dialogs/aboutdialog/examplewindow.cc
+++ b/examples/book/dialogs/aboutdialog/examplewindow.cc
@@ -28,12 +28,12 @@ ExampleWindow::ExampleWindow()
add(m_VBox);
- m_VBox.pack_start(m_Label);
+ m_VBox.pack_start(m_Label, Gtk::PackOptions::EXPAND_WIDGET);
m_Label.set_line_wrap(true);
m_Label.set_selectable(true);
- m_VBox.pack_start(m_ButtonBox);
- m_ButtonBox.pack_start(m_Button);
+ m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::EXPAND_WIDGET);
+ m_ButtonBox.pack_start(m_Button, Gtk::PackOptions::EXPAND_WIDGET);
m_Button.signal_clicked().connect(sigc::mem_fun(*this,
&ExampleWindow::on_button_clicked) );
diff --git a/examples/book/dialogs/colorchooserdialog/examplewindow.cc
b/examples/book/dialogs/colorchooserdialog/examplewindow.cc
index f4b7947..b393f8d 100644
--- a/examples/book/dialogs/colorchooserdialog/examplewindow.cc
+++ b/examples/book/dialogs/colorchooserdialog/examplewindow.cc
@@ -41,7 +41,7 @@ ExampleWindow::ExampleWindow()
m_Color.set_alpha(1.0); //opaque
m_ColorButton.set_rgba(m_Color);
- m_VBox.pack_start(m_DrawingArea);
+ m_VBox.pack_start(m_DrawingArea, Gtk::PackOptions::EXPAND_WIDGET);
m_DrawingArea.set_draw_func(sigc::mem_fun(*this, &ExampleWindow::on_drawing_area_draw));
}
diff --git a/examples/book/dialogs/filechooserdialog/examplewindow.cc
b/examples/book/dialogs/filechooserdialog/examplewindow.cc
index 9b3ab22..f3bdd53 100644
--- a/examples/book/dialogs/filechooserdialog/examplewindow.cc
+++ b/examples/book/dialogs/filechooserdialog/examplewindow.cc
@@ -27,11 +27,11 @@ ExampleWindow::ExampleWindow()
add(m_ButtonBox);
- m_ButtonBox.pack_start(m_Button_File);
+ m_ButtonBox.pack_start(m_Button_File, Gtk::PackOptions::EXPAND_WIDGET);
m_Button_File.signal_clicked().connect(sigc::mem_fun(*this,
&ExampleWindow::on_button_file_clicked) );
- m_ButtonBox.pack_start(m_Button_Folder);
+ m_ButtonBox.pack_start(m_Button_Folder, Gtk::PackOptions::EXPAND_WIDGET);
m_Button_Folder.signal_clicked().connect(sigc::mem_fun(*this,
&ExampleWindow::on_button_folder_clicked) );
}
diff --git a/examples/book/dialogs/fontchooserdialog/examplewindow.cc
b/examples/book/dialogs/fontchooserdialog/examplewindow.cc
index 5f27d3d..214df6b 100644
--- a/examples/book/dialogs/fontchooserdialog/examplewindow.cc
+++ b/examples/book/dialogs/fontchooserdialog/examplewindow.cc
@@ -26,13 +26,13 @@ ExampleWindow::ExampleWindow()
add(m_ButtonBox);
- m_ButtonBox.pack_start(m_FontButton);
+ m_ButtonBox.pack_start(m_FontButton, Gtk::PackOptions::EXPAND_WIDGET);
m_FontButton.set_use_font(true);
m_FontButton.set_use_size(true);
m_FontButton.signal_font_set().connect(sigc::mem_fun(*this,
&ExampleWindow::on_font_button_font_set) );
- m_ButtonBox.pack_start(m_Button_Dialog);
+ m_ButtonBox.pack_start(m_Button_Dialog, Gtk::PackOptions::EXPAND_WIDGET);
m_Button_Dialog.signal_clicked().connect(sigc::mem_fun(*this,
&ExampleWindow::on_button_dialog_clicked) );
}
diff --git a/examples/book/dialogs/messagedialog/examplewindow.cc
b/examples/book/dialogs/messagedialog/examplewindow.cc
index ebc9f17..68bffdf 100644
--- a/examples/book/dialogs/messagedialog/examplewindow.cc
+++ b/examples/book/dialogs/messagedialog/examplewindow.cc
@@ -28,11 +28,11 @@ ExampleWindow::ExampleWindow()
add(m_ButtonBox);
- m_ButtonBox.pack_start(m_Button_Info);
+ m_ButtonBox.pack_start(m_Button_Info, Gtk::PackOptions::EXPAND_WIDGET);
m_Button_Info.signal_clicked().connect(sigc::mem_fun(*this,
&ExampleWindow::on_button_info_clicked) );
- m_ButtonBox.pack_start(m_Button_Question);
+ m_ButtonBox.pack_start(m_Button_Question, Gtk::PackOptions::EXPAND_WIDGET);
m_Button_Question.signal_clicked().connect(sigc::mem_fun(*this,
&ExampleWindow::on_button_question_clicked) );
}
diff --git a/examples/book/drag_and_drop/dndwindow.cc b/examples/book/drag_and_drop/dndwindow.cc
index c7ba45a..8ba06ed 100644
--- a/examples/book/drag_and_drop/dndwindow.cc
+++ b/examples/book/drag_and_drop/dndwindow.cc
@@ -39,7 +39,7 @@ DnDWindow::DnDWindow()
m_Button_Drag.signal_drag_data_get().connect(sigc::mem_fun(*this,
&DnDWindow::on_button_drag_data_get));
- m_HBox.pack_start(m_Button_Drag);
+ m_HBox.pack_start(m_Button_Drag, Gtk::PackOptions::EXPAND_WIDGET);
//Drop site:
@@ -50,7 +50,7 @@ DnDWindow::DnDWindow()
m_Label_Drop.signal_drag_data_received().connect(sigc::mem_fun(*this,
&DnDWindow::on_label_drop_drag_data_received) );
- m_HBox.pack_start(m_Label_Drop);
+ m_HBox.pack_start(m_Label_Drop, Gtk::PackOptions::EXPAND_WIDGET);
}
DnDWindow::~DnDWindow()
diff --git a/examples/book/entry/simple/examplewindow.cc b/examples/book/entry/simple/examplewindow.cc
index 34d878a..704a27d 100644
--- a/examples/book/entry/simple/examplewindow.cc
+++ b/examples/book/entry/simple/examplewindow.cc
@@ -32,24 +32,24 @@ ExampleWindow::ExampleWindow()
m_Entry.set_text("hello");
m_Entry.set_text(m_Entry.get_text() + " world");
m_Entry.select_region(0, m_Entry.get_text_length());
- m_VBox.pack_start(m_Entry);
+ m_VBox.pack_start(m_Entry, Gtk::PackOptions::EXPAND_WIDGET);
// Note that add() can also be used instead of pack_xxx()
m_VBox.add(m_HBox);
- m_HBox.pack_start(m_CheckButton_Editable);
+ m_HBox.pack_start(m_CheckButton_Editable, Gtk::PackOptions::EXPAND_WIDGET);
m_CheckButton_Editable.signal_toggled().connect( sigc::mem_fun(*this,
&ExampleWindow::on_checkbox_editable_toggled) );
m_CheckButton_Editable.set_active(true);
- m_HBox.pack_start(m_CheckButton_Visible);
+ m_HBox.pack_start(m_CheckButton_Visible, Gtk::PackOptions::EXPAND_WIDGET);
m_CheckButton_Visible.signal_toggled().connect( sigc::mem_fun(*this,
&ExampleWindow::on_checkbox_visibility_toggled) );
m_CheckButton_Visible.set_active(true);
m_Button_Close.signal_clicked().connect( sigc::mem_fun(*this,
&ExampleWindow::on_button_close) );
- m_VBox.pack_start(m_Button_Close);
+ m_VBox.pack_start(m_Button_Close, Gtk::PackOptions::EXPAND_WIDGET);
m_Button_Close.set_can_default();
m_Button_Close.grab_default();
}
diff --git a/examples/book/helloworld2/helloworld.cc b/examples/book/helloworld2/helloworld.cc
index 63827b6..29d6f28 100644
--- a/examples/book/helloworld2/helloworld.cc
+++ b/examples/book/helloworld2/helloworld.cc
@@ -38,7 +38,7 @@ HelloWorld::HelloWorld()
// instead of gtk_container_add, we pack this button into the invisible
// box, which has been packed into the window.
// note that the pack_start default arguments are Gtk::EXPAND | Gtk::FILL, 0
- m_box1.pack_start(m_button1);
+ m_box1.pack_start(m_button1, Gtk::PackOptions::EXPAND_WIDGET);
// always remember this step, this tells GTK that our preparation
// for this button is complete, and it can be displayed now.
@@ -49,7 +49,7 @@ HelloWorld::HelloWorld()
m_button2.signal_clicked().connect(sigc::bind(
sigc::mem_fun(*this, &HelloWorld::on_button_clicked), "button 2"));
- m_box1.pack_start(m_button2);
+ m_box1.pack_start(m_button2, Gtk::PackOptions::EXPAND_WIDGET);
// Show the widgets.
// They will not really be shown until this Window is shown.
diff --git a/examples/book/iconview/examplewindow.cc b/examples/book/iconview/examplewindow.cc
index e46ea3b..d0813ff 100644
--- a/examples/book/iconview/examplewindow.cc
+++ b/examples/book/iconview/examplewindow.cc
@@ -52,7 +52,7 @@ ExampleWindow::ExampleWindow()
// Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/idle/idleexample.cc b/examples/book/idle/idleexample.cc
index 67a7c6b..efb45ad 100644
--- a/examples/book/idle/idleexample.cc
+++ b/examples/book/idle/idleexample.cc
@@ -28,16 +28,16 @@ IdleExample::IdleExample() :
add(m_Box);
m_Box.pack_start( *Gtk::manage(new Gtk::Label("Formatting Windows drive C:")));
m_Box.pack_start( *Gtk::manage(new Gtk::Label("100 MB")) );
- m_Box.pack_start(m_ProgressBar_c);
+ m_Box.pack_start(m_ProgressBar_c, Gtk::PackOptions::EXPAND_WIDGET);
m_Box.pack_start( *Gtk::manage(new Gtk::Label("")) );
m_Box.pack_start( *Gtk::manage(new Gtk::Label("Formatting Windows drive D:")));
m_Box.pack_start( *Gtk::manage(new Gtk::Label("5000 MB")) );
- m_Box.pack_start(m_ProgressBar_d);
+ m_Box.pack_start(m_ProgressBar_d, Gtk::PackOptions::EXPAND_WIDGET);
auto hbox = Gtk::manage( new Gtk::Box(Gtk::Orientation::HORIZONTAL,10));
- m_Box.pack_start(*hbox);
+ m_Box.pack_start(*hbox, Gtk::PackOptions::EXPAND_WIDGET);
hbox->pack_start(m_ButtonQuit, Gtk::PackOptions::EXPAND_PADDING);
// Connect the signal handlers:
diff --git a/examples/book/infobar/examplewindow.cc b/examples/book/infobar/examplewindow.cc
index 4f53bdf..16197b8 100644
--- a/examples/book/infobar/examplewindow.cc
+++ b/examples/book/infobar/examplewindow.cc
@@ -49,7 +49,7 @@ ExampleWindow::ExampleWindow()
// Show the scrollbars only when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
// Add button box:
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/menus/popup/examplewindow.cc b/examples/book/menus/popup/examplewindow.cc
index 442cb5c..4fbbda0 100644
--- a/examples/book/menus/popup/examplewindow.cc
+++ b/examples/book/menus/popup/examplewindow.cc
@@ -28,7 +28,7 @@ ExampleWindow::ExampleWindow()
add(m_Box);
//Add an event box that can catch button_press events:
- m_Box.pack_start(m_EventBox);
+ m_Box.pack_start(m_EventBox, Gtk::PackOptions::EXPAND_WIDGET);
m_EventBox.signal_button_press_event().connect(sigc::mem_fun(*this,
&ExampleWindow::on_button_press_event), true);
diff --git a/examples/book/multithread/examplewindow.cc b/examples/book/multithread/examplewindow.cc
index d86eecb..27398e4 100644
--- a/examples/book/multithread/examplewindow.cc
+++ b/examples/book/multithread/examplewindow.cc
@@ -47,7 +47,7 @@ ExampleWindow::ExampleWindow() :
// Only show the scrollbars when they are necessary.
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_TextView.set_editable(false);
diff --git a/examples/book/notebook/examplewindow.cc b/examples/book/notebook/examplewindow.cc
index 9f5e72b..51c53b7 100644
--- a/examples/book/notebook/examplewindow.cc
+++ b/examples/book/notebook/examplewindow.cc
@@ -31,7 +31,7 @@ ExampleWindow::ExampleWindow()
//Add the Notebook, with the button underneath:
m_Notebook.set_margin(10);
- m_VBox.pack_start(m_Notebook);
+ m_VBox.pack_start(m_Notebook, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/printing/advanced/examplewindow.cc
b/examples/book/printing/advanced/examplewindow.cc
index 0e31d01..a752867 100644
--- a/examples/book/printing/advanced/examplewindow.cc
+++ b/examples/book/printing/advanced/examplewindow.cc
@@ -40,7 +40,7 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
build_main_menu(app);
- m_VBox.pack_start(m_Grid);
+ m_VBox.pack_start(m_Grid, Gtk::PackOptions::EXPAND_WIDGET);
//Arrange the widgets inside the grid:
m_Grid.set_row_spacing(5);
@@ -65,7 +65,7 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
m_refTextBuffer = Gtk::TextBuffer::create();
m_TextView.set_buffer(m_refTextBuffer);
- m_VBox.pack_start(m_Statusbar);
+ m_VBox.pack_start(m_Statusbar, Gtk::PackOptions::EXPAND_WIDGET);
}
ExampleWindow::~ExampleWindow()
diff --git a/examples/book/printing/advanced/previewdialog.cc
b/examples/book/printing/advanced/previewdialog.cc
index 37775fc..7948ad3 100644
--- a/examples/book/printing/advanced/previewdialog.cc
+++ b/examples/book/printing/advanced/previewdialog.cc
@@ -41,7 +41,7 @@ PreviewDialog::PreviewDialog(
m_VBox.set_margin(2);
add(m_VBox);
- m_HBox.pack_start(m_PageSpin);
+ m_HBox.pack_start(m_PageSpin, Gtk::PackOptions::EXPAND_WIDGET);
m_HBox.pack_start(m_CloseButton, Gtk::PackOptions::SHRINK);
m_VBox.pack_start(m_HBox, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/printing/simple/examplewindow.cc b/examples/book/printing/simple/examplewindow.cc
index 0e31d01..a752867 100644
--- a/examples/book/printing/simple/examplewindow.cc
+++ b/examples/book/printing/simple/examplewindow.cc
@@ -40,7 +40,7 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
build_main_menu(app);
- m_VBox.pack_start(m_Grid);
+ m_VBox.pack_start(m_Grid, Gtk::PackOptions::EXPAND_WIDGET);
//Arrange the widgets inside the grid:
m_Grid.set_row_spacing(5);
@@ -65,7 +65,7 @@ ExampleWindow::ExampleWindow(const Glib::RefPtr<Gtk::Application>& app)
m_refTextBuffer = Gtk::TextBuffer::create();
m_TextView.set_buffer(m_refTextBuffer);
- m_VBox.pack_start(m_Statusbar);
+ m_VBox.pack_start(m_Statusbar, Gtk::PackOptions::EXPAND_WIDGET);
}
ExampleWindow::~ExampleWindow()
diff --git a/examples/book/progressbar/examplewindow.cc b/examples/book/progressbar/examplewindow.cc
index 748af53..171781e 100644
--- a/examples/book/progressbar/examplewindow.cc
+++ b/examples/book/progressbar/examplewindow.cc
@@ -44,7 +44,7 @@ ExampleWindow::ExampleWindow()
&ExampleWindow::on_timeout), 50 );
m_VBox.pack_start(m_Separator, Gtk::PackOptions::SHRINK);
- m_VBox.pack_start(m_Grid);
+ m_VBox.pack_start(m_Grid, Gtk::PackOptions::EXPAND_WIDGET);
m_Grid.set_row_homogeneous(true);
//Add a check button to select displaying of the trough text:
diff --git a/examples/book/range_widgets/examplewindow.cc b/examples/book/range_widgets/examplewindow.cc
index d585316..12b5367 100644
--- a/examples/book/range_widgets/examplewindow.cc
+++ b/examples/book/range_widgets/examplewindow.cc
@@ -65,18 +65,18 @@ ExampleWindow::ExampleWindow()
m_HScale.set_draw_value();
add(m_VBox_Top);
- m_VBox_Top.pack_start(m_VBox2);
+ m_VBox_Top.pack_start(m_VBox2, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox2.set_margin(10);
- m_VBox2.pack_start(m_HBox_Scales);
+ m_VBox2.pack_start(m_HBox_Scales, Gtk::PackOptions::EXPAND_WIDGET);
//Put VScale and HScale (above scrollbar) side-by-side.
- m_HBox_Scales.pack_start(m_VScale);
- m_HBox_Scales.pack_start(m_VBox_HScale);
+ m_HBox_Scales.pack_start(m_VScale, Gtk::PackOptions::EXPAND_WIDGET);
+ m_HBox_Scales.pack_start(m_VBox_HScale, Gtk::PackOptions::EXPAND_WIDGET);
- m_VBox_HScale.pack_start(m_HScale);
+ m_VBox_HScale.pack_start(m_HScale, Gtk::PackOptions::EXPAND_WIDGET);
//Scrollbar:
- m_VBox_HScale.pack_start(m_Scrollbar);
+ m_VBox_HScale.pack_start(m_Scrollbar, Gtk::PackOptions::EXPAND_WIDGET);
//CheckButton:
m_CheckButton.set_active();
@@ -107,7 +107,7 @@ ExampleWindow::ExampleWindow()
m_VBox2.pack_start(m_HBox_Combo, Gtk::PackOptions::SHRINK);
m_HBox_Combo.pack_start(
*Gtk::manage(new Gtk::Label("Scale Value Position:", 0)), Gtk::PackOptions::SHRINK);
- m_HBox_Combo.pack_start(m_ComboBox_Position);
+ m_HBox_Combo.pack_start(m_ComboBox_Position, Gtk::PackOptions::EXPAND_WIDGET);
m_ComboBox_Position.signal_changed().connect( sigc::mem_fun(*this, &ExampleWindow::on_combo_position) );
m_ComboBox_Position.set_active(0); // Top
@@ -117,7 +117,7 @@ ExampleWindow::ExampleWindow()
m_Scale_Digits.set_digits(0);
m_adjustment_digits->signal_value_changed().connect(sigc::mem_fun(*this,
&ExampleWindow::on_adjustment1_value_changed));
- m_HBox_Digits.pack_start(m_Scale_Digits);
+ m_HBox_Digits.pack_start(m_Scale_Digits, Gtk::PackOptions::EXPAND_WIDGET);
//Page Size:
m_HBox_PageSize.pack_start(
@@ -126,7 +126,7 @@ ExampleWindow::ExampleWindow()
m_Scale_PageSize.set_digits(0);
m_adjustment_pagesize->signal_value_changed().connect(sigc::mem_fun(*this,
&ExampleWindow::on_adjustment2_value_changed));
- m_HBox_PageSize.pack_start(m_Scale_PageSize);
+ m_HBox_PageSize.pack_start(m_Scale_PageSize, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox2.pack_start(m_HBox_Digits, Gtk::PackOptions::SHRINK);
m_VBox2.pack_start(m_HBox_PageSize, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/scrolledwindow/examplewindow.cc b/examples/book/scrolledwindow/examplewindow.cc
index 7dd0719..73899e2 100644
--- a/examples/book/scrolledwindow/examplewindow.cc
+++ b/examples/book/scrolledwindow/examplewindow.cc
@@ -31,7 +31,7 @@ ExampleWindow::ExampleWindow()
* the vertical. */
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::ALWAYS);
- get_content_area()->pack_start(m_ScrolledWindow);
+ get_content_area()->pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
/* set the spacing to 10 on x and 10 on y */
m_Grid.set_row_spacing(10);
diff --git a/examples/book/spinbutton/examplewindow.cc b/examples/book/spinbutton/examplewindow.cc
index d800ec3..2f15186 100644
--- a/examples/book/spinbutton/examplewindow.cc
+++ b/examples/book/spinbutton/examplewindow.cc
@@ -56,7 +56,7 @@ ExampleWindow::ExampleWindow()
m_VBox_Main.set_margin(10);
add(m_VBox_Main);
- m_VBox_Main.pack_start(m_Frame_NotAccelerated);
+ m_VBox_Main.pack_start(m_Frame_NotAccelerated, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.set_margin(5);
m_Frame_NotAccelerated.add(m_VBox);
@@ -66,32 +66,32 @@ ExampleWindow::ExampleWindow()
m_VBox.set_spacing(5);
m_VBox.pack_start(m_HBox_NotAccelerated, Gtk::PackOptions::EXPAND_WIDGET);
- m_VBox_Day.pack_start(m_Label_Day);
+ m_VBox_Day.pack_start(m_Label_Day, Gtk::PackOptions::EXPAND_WIDGET);
m_SpinButton_Day.set_wrap();
- m_VBox_Day.pack_start(m_SpinButton_Day);
+ m_VBox_Day.pack_start(m_SpinButton_Day, Gtk::PackOptions::EXPAND_WIDGET);
m_HBox_NotAccelerated.set_spacing(5);
m_HBox_NotAccelerated.pack_start(m_VBox_Day, Gtk::PackOptions::EXPAND_WIDGET);
- m_VBox_Month.pack_start(m_Label_Month);
+ m_VBox_Month.pack_start(m_Label_Month, Gtk::PackOptions::EXPAND_WIDGET);
m_SpinButton_Month.set_wrap();
- m_VBox_Month.pack_start(m_SpinButton_Month);
+ m_VBox_Month.pack_start(m_SpinButton_Month, Gtk::PackOptions::EXPAND_WIDGET);
m_HBox_NotAccelerated.pack_start(m_VBox_Month, Gtk::PackOptions::EXPAND_WIDGET);
- m_VBox_Year.pack_start(m_Label_Year);
+ m_VBox_Year.pack_start(m_Label_Year, Gtk::PackOptions::EXPAND_WIDGET);
m_SpinButton_Year.set_wrap();
m_SpinButton_Year.set_size_request(55, -1);
- m_VBox_Year.pack_start(m_SpinButton_Year);
+ m_VBox_Year.pack_start(m_SpinButton_Year, Gtk::PackOptions::EXPAND_WIDGET);
m_HBox_NotAccelerated.pack_start(m_VBox_Year, Gtk::PackOptions::EXPAND_WIDGET);
//Accelerated:
- m_VBox_Main.pack_start(m_Frame_Accelerated);
+ m_VBox_Main.pack_start(m_Frame_Accelerated, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox_Accelerated.set_margin(5);
m_Frame_Accelerated.add(m_VBox_Accelerated);
@@ -101,30 +101,30 @@ ExampleWindow::ExampleWindow()
m_HBox_Accelerated.pack_start(m_VBox_Value, Gtk::PackOptions::EXPAND_WIDGET);
- m_VBox_Value.pack_start(m_Label_Value);
+ m_VBox_Value.pack_start(m_Label_Value, Gtk::PackOptions::EXPAND_WIDGET);
m_SpinButton_Value.set_wrap();
m_SpinButton_Value.set_size_request(100, -1);
- m_VBox_Value.pack_start(m_SpinButton_Value);
+ m_VBox_Value.pack_start(m_SpinButton_Value, Gtk::PackOptions::EXPAND_WIDGET);
m_HBox_Accelerated.pack_start(m_VBox_Digits, Gtk::PackOptions::EXPAND_WIDGET);
- m_VBox_Digits.pack_start(m_Label_Digits);
+ m_VBox_Digits.pack_start(m_Label_Digits, Gtk::PackOptions::EXPAND_WIDGET);
m_SpinButton_Digits.set_wrap();
m_adjustment_digits->signal_value_changed().connect( sigc::mem_fun(*this,
&ExampleWindow::on_spinbutton_digits_changed) );
- m_VBox_Digits.pack_start(m_SpinButton_Digits);
+ m_VBox_Digits.pack_start(m_SpinButton_Digits, Gtk::PackOptions::EXPAND_WIDGET);
//CheckButtons:
- m_VBox_Accelerated.pack_start(m_CheckButton_Snap);
+ m_VBox_Accelerated.pack_start(m_CheckButton_Snap, Gtk::PackOptions::EXPAND_WIDGET);
m_CheckButton_Snap.set_active();
m_CheckButton_Snap.signal_clicked().connect( sigc::mem_fun(*this,
&ExampleWindow::on_checkbutton_snap) );
- m_VBox_Accelerated.pack_start(m_CheckButton_Numeric);
+ m_VBox_Accelerated.pack_start(m_CheckButton_Numeric, Gtk::PackOptions::EXPAND_WIDGET);
m_CheckButton_Numeric.set_active();
m_CheckButton_Numeric.signal_clicked().connect( sigc::mem_fun(*this,
&ExampleWindow::on_checkbutton_numeric) );
@@ -142,7 +142,7 @@ ExampleWindow::ExampleWindow()
&ExampleWindow::on_button_getvalue), VALUE_FORMAT_FLOAT) );
m_HBox_Buttons.pack_start(m_Button_Float, Gtk::PackOptions::EXPAND_WIDGET);
- m_VBox_Accelerated.pack_start(m_Label_ShowValue);
+ m_VBox_Accelerated.pack_start(m_Label_ShowValue, Gtk::PackOptions::EXPAND_WIDGET);
m_Label_ShowValue.set_text("0");
//Close button:
diff --git a/examples/book/textview/examplewindow.cc b/examples/book/textview/examplewindow.cc
index 5fa5531..13a03ca 100644
--- a/examples/book/textview/examplewindow.cc
+++ b/examples/book/textview/examplewindow.cc
@@ -34,7 +34,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
//Add buttons:
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/timeout/timerexample.cc b/examples/book/timeout/timerexample.cc
index 0d1f8b7..f33d1d5 100644
--- a/examples/book/timeout/timerexample.cc
+++ b/examples/book/timeout/timerexample.cc
@@ -27,9 +27,9 @@ TimerExample::TimerExample() :
{
m_Box.set_margin(10);
add(m_Box);
- m_Box.pack_start(m_ButtonAddTimer);
- m_Box.pack_start(m_ButtonDeleteTimer);
- m_Box.pack_start(m_ButtonQuit);
+ m_Box.pack_start(m_ButtonAddTimer, Gtk::PackOptions::EXPAND_WIDGET);
+ m_Box.pack_start(m_ButtonDeleteTimer, Gtk::PackOptions::EXPAND_WIDGET);
+ m_Box.pack_start(m_ButtonQuit, Gtk::PackOptions::EXPAND_WIDGET);
// Connect the three buttons:
m_ButtonQuit.signal_clicked().connect(sigc::mem_fun(*this,
diff --git a/examples/book/toolpalette/examplewindow.cc b/examples/book/toolpalette/examplewindow.cc
index b974987..562011f 100644
--- a/examples/book/toolpalette/examplewindow.cc
+++ b/examples/book/toolpalette/examplewindow.cc
@@ -239,7 +239,7 @@ ExampleWindow::ExampleWindow()
m_ScrolledWindowPalette.set_policy(Gtk::PolicyType::NEVER, Gtk::PolicyType::AUTOMATIC);
m_ScrolledWindowPalette.set_margin(6);
m_ScrolledWindowPalette.add(m_ToolPalette);
- m_HBox.pack_start(m_ScrolledWindowPalette);
+ m_HBox.pack_start(m_ScrolledWindowPalette, Gtk::PackOptions::EXPAND_WIDGET);
on_combo_orientation_changed();
@@ -247,7 +247,7 @@ ExampleWindow::ExampleWindow()
m_ScrolledWindowCanvas.set_margin(6);
m_ScrolledWindowCanvas.add(m_Canvas);
m_ScrolledWindowCanvas.set_size_request(200, -1);
- m_HBox.pack_start(m_ScrolledWindowCanvas);
+ m_HBox.pack_start(m_ScrolledWindowCanvas, Gtk::PackOptions::EXPAND_WIDGET);
m_ToolPalette.add_drag_dest(m_Canvas,
Gtk::DestDefaults::HIGHLIGHT, Gtk::ToolPaletteDragTargets::ITEMS, Gdk::DragAction::COPY);
diff --git a/examples/book/tooltips/examplewindow.cc b/examples/book/tooltips/examplewindow.cc
index ab7eefd..24a3682 100644
--- a/examples/book/tooltips/examplewindow.cc
+++ b/examples/book/tooltips/examplewindow.cc
@@ -75,7 +75,7 @@ void ExampleWindow::prepare_textview()
//Set up a scrolled window:
m_scrolled_window.add(m_text_view);
m_scrolled_window.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_vbox.pack_start(m_scrolled_window);
+ m_vbox.pack_start(m_scrolled_window, Gtk::PackOptions::EXPAND_WIDGET);
//Create a text buffer with some text:
m_ref_text_buffer = Gtk::TextBuffer::create();
diff --git a/examples/book/treeview/combo_renderer/examplewindow.cc
b/examples/book/treeview/combo_renderer/examplewindow.cc
index ccb6e22..e875e5f 100644
--- a/examples/book/treeview/combo_renderer/examplewindow.cc
+++ b/examples/book/treeview/combo_renderer/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/treeview/drag_and_drop/examplewindow.cc
b/examples/book/treeview/drag_and_drop/examplewindow.cc
index 30fb10f..4c7fce5 100644
--- a/examples/book/treeview/drag_and_drop/examplewindow.cc
+++ b/examples/book/treeview/drag_and_drop/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/treeview/editable_cells/examplewindow.cc
b/examples/book/treeview/editable_cells/examplewindow.cc
index 6a1f7b6..efda765 100644
--- a/examples/book/treeview/editable_cells/examplewindow.cc
+++ b/examples/book/treeview/editable_cells/examplewindow.cc
@@ -39,7 +39,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/treeview/filter/examplewindow.cc b/examples/book/treeview/filter/examplewindow.cc
index cf6634a..bf6830a 100644
--- a/examples/book/treeview/filter/examplewindow.cc
+++ b/examples/book/treeview/filter/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/treeview/filter_modify/examplewindow.cc
b/examples/book/treeview/filter_modify/examplewindow.cc
index 6971336..340b4ea 100644
--- a/examples/book/treeview/filter_modify/examplewindow.cc
+++ b/examples/book/treeview/filter_modify/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/treeview/list/examplewindow.cc b/examples/book/treeview/list/examplewindow.cc
index 6736ccd..b876218 100644
--- a/examples/book/treeview/list/examplewindow.cc
+++ b/examples/book/treeview/list/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/treeview/listviewtext/examplewindow.cc
b/examples/book/treeview/listviewtext/examplewindow.cc
index 72fd0b1..168f4e5 100644
--- a/examples/book/treeview/listviewtext/examplewindow.cc
+++ b/examples/book/treeview/listviewtext/examplewindow.cc
@@ -34,7 +34,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/treeview/modelsort/examplewindow.cc
b/examples/book/treeview/modelsort/examplewindow.cc
index 846bd26..8c37da6 100644
--- a/examples/book/treeview/modelsort/examplewindow.cc
+++ b/examples/book/treeview/modelsort/examplewindow.cc
@@ -36,8 +36,8 @@ ExampleWindow::ExampleWindow()
m_ScrolledWindow1.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
m_ScrolledWindow2.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow1);
- m_VBox.pack_start(m_ScrolledWindow2);
+ m_VBox.pack_start(m_ScrolledWindow1, Gtk::PackOptions::EXPAND_WIDGET);
+ m_VBox.pack_start(m_ScrolledWindow2, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/treeview/popup/examplewindow.cc b/examples/book/treeview/popup/examplewindow.cc
index a2ece8d..2a342f7 100644
--- a/examples/book/treeview/popup/examplewindow.cc
+++ b/examples/book/treeview/popup/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/book/treeview/tree/examplewindow.cc b/examples/book/treeview/tree/examplewindow.cc
index e9d0a88..f112d05 100644
--- a/examples/book/treeview/tree/examplewindow.cc
+++ b/examples/book/treeview/tree/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
diff --git a/examples/others/calendar/calendar.cc b/examples/others/calendar/calendar.cc
index 7ce99f3..1cc4b49 100644
--- a/examples/others/calendar/calendar.cc
+++ b/examples/others/calendar/calendar.cc
@@ -235,7 +235,7 @@ CalendarExample::CalendarExample()
{
auto toggle = new Gtk::CheckButton(flags[i].label);
toggle->signal_toggled().connect(sigc::bind(sigc::mem_fun(*this, &CalendarExample::toggle_flag),
toggle));
- vbox3->pack_start(*toggle);
+ vbox3->pack_start(*toggle, Gtk::PackOptions::EXPAND_WIDGET);
flag_checkboxes_[i] = toggle;
}
diff --git a/examples/others/idle/idle.cc b/examples/others/idle/idle.cc
index 8457296..0917f44 100644
--- a/examples/others/idle/idle.cc
+++ b/examples/others/idle/idle.cc
@@ -45,17 +45,17 @@ IdleExample::IdleExample() :
// adding a few widgets
vbox->pack_start(* manage(new Gtk::Label("Formatting windows drive C:")));
vbox->pack_start(* manage(new Gtk::Label("100 MB")));
- vbox->pack_start(m_progressbar_c);
+ vbox->pack_start(m_progressbar_c, Gtk::PackOptions::EXPAND_WIDGET);
vbox->pack_start(* manage(new Gtk::Label("")));
vbox->pack_start(* manage(new Gtk::Label("Formatting windows drive D:")));
vbox->pack_start(* manage(new Gtk::Label("5000 MB")));
- vbox->pack_start(m_progressbar_d);
+ vbox->pack_start(m_progressbar_d, Gtk::PackOptions::EXPAND_WIDGET);
Gtk::Box *hbox = manage( new Gtk::Box(Gtk::Orientation::HORIZONTAL,10));
hbox->pack_start(m_quit, Gtk::PackOptions::EXPAND_PADDING);
- vbox->pack_start(*hbox);
+ vbox->pack_start(*hbox, Gtk::PackOptions::EXPAND_WIDGET);
// set margin and display all
vbox->set_margin(5);
diff --git a/examples/others/statusbar/statusbar.cc b/examples/others/statusbar/statusbar.cc
index 2ea01ce..649e40f 100644
--- a/examples/others/statusbar/statusbar.cc
+++ b/examples/others/statusbar/statusbar.cc
@@ -37,13 +37,13 @@ StatusBarExample::StatusBarExample()
add(m_vbox);
- m_vbox.pack_start(m_status_bar);
+ m_vbox.pack_start(m_status_bar, Gtk::PackOptions::EXPAND_WIDGET);
m_bPush.signal_clicked().connect( sigc::bind(sigc::mem_fun(*this, &StatusBarExample::push_item),
m_context_id) );
- m_vbox.pack_start(m_bPush);
+ m_vbox.pack_start(m_bPush, Gtk::PackOptions::EXPAND_WIDGET);
m_bPop.signal_clicked().connect( sigc::bind(sigc::mem_fun(*this, &StatusBarExample::pop_item),
m_context_id) );
- m_vbox.pack_start(m_bPop);
+ m_vbox.pack_start(m_bPop, Gtk::PackOptions::EXPAND_WIDGET);
}
void
diff --git a/examples/others/treemodelcustom/examplewindow.cc
b/examples/others/treemodelcustom/examplewindow.cc
index 3b2006b..7c2c73e 100644
--- a/examples/others/treemodelcustom/examplewindow.cc
+++ b/examples/others/treemodelcustom/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
//Only show the scrollbars when they are necessary:
m_ScrolledWindow.set_policy(Gtk::PolicyType::AUTOMATIC, Gtk::PolicyType::AUTOMATIC);
- m_VBox.pack_start(m_ScrolledWindow);
+ m_VBox.pack_start(m_ScrolledWindow, Gtk::PackOptions::EXPAND_WIDGET);
m_VBox.pack_start(m_ButtonBox, Gtk::PackOptions::SHRINK);
m_ButtonBox.pack_start(m_Button_Quit, Gtk::PackOptions::SHRINK);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]