[glom/gtkmm4v3: 4/21] gtkmm4: Use set_margin() instead of set_border_width().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gtkmm4v3: 4/21] gtkmm4: Use set_margin() instead of set_border_width().
- Date: Tue, 14 Mar 2017 09:43:54 +0000 (UTC)
commit bbbf46446fde0f630b45c0bd4e6689bde9e87e2a
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Dec 16 16:45:27 2016 +0100
gtkmm4: Use set_margin() instead of set_border_width().
glom/box_withbuttons.cc | 4 ++--
glom/libglom/test_avahi_publisher.cc | 2 +-
glom/mode_data/box_data_details.cc | 2 +-
glom/mode_data/flowtablewithfields.cc | 2 +-
.../layout_item_dialogs/dialog_formatting.cc | 2 +-
glom/utility_widgets/adddel/adddel_withbuttons.cc | 6 +++---
.../eggspreadtablemm/test_spreadtablednd.cc | 2 +-
glom/window_boxholder.cc | 2 +-
8 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/glom/box_withbuttons.cc b/glom/box_withbuttons.cc
index 06bc968..3e8a2c5 100644
--- a/glom/box_withbuttons.cc
+++ b/glom/box_withbuttons.cc
@@ -38,7 +38,7 @@ Box_WithButtons::Box_WithButtons()
{
//m_document = nullptr;
- //set_border_width(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
+ //set_margin(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
set_spacing(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
//Connect signals:
@@ -52,7 +52,7 @@ Box_WithButtons::Box_WithButtons(BaseObjectType* cobject, const Glib::RefPtr<Gtk
{
//m_document = nullptr;
- //set_border_width(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
+ //set_margin(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
set_spacing(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
//Connect signals:
diff --git a/glom/libglom/test_avahi_publisher.cc b/glom/libglom/test_avahi_publisher.cc
index 641b67d..bbe1ee5 100644
--- a/glom/libglom/test_avahi_publisher.cc
+++ b/glom/libglom/test_avahi_publisher.cc
@@ -32,7 +32,7 @@ TestWindow::TestWindow()
m_button_start("Start"),
m_button_stop("Stop")
{
- set_border_width(10);
+ set_margin(10);
add(m_box);
m_box.pack_start(m_button_start);
m_box.pack_start(m_button_stop);
diff --git a/glom/mode_data/box_data_details.cc b/glom/mode_data/box_data_details.cc
index 3047ed7..3bddecc 100644
--- a/glom/mode_data/box_data_details.cc
+++ b/glom/mode_data/box_data_details.cc
@@ -72,7 +72,7 @@ Box_Data_Details::Box_Data_Details(bool bWithNavButtons /* = true */)
//m_strHint = _("When you change the data in a field the database is updated immediately.\n Click [New] to
add a new record.\n Leave automatic ID fields empty - they will be filled for you.");
- //m_scrolled_window.set_border_width(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
+ //m_scrolled_window.set_margin(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
// Allow vertical scrolling, but never scroll horizontally:
m_ScrolledWindow.set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
diff --git a/glom/mode_data/flowtablewithfields.cc b/glom/mode_data/flowtablewithfields.cc
index c546b19..d8132a0 100644
--- a/glom/mode_data/flowtablewithfields.cc
+++ b/glom/mode_data/flowtablewithfields.cc
@@ -377,7 +377,7 @@ void FlowTableWithFields::add_layout_notebook(const std::shared_ptr<LayoutItem_N
{
//Add a Related Records list for this portal:
auto portal_box = create_related(portal, false /* no label, because it's in the tab instead. */);
- //portal_box->set_border_width(Utils::to_utype(Glom::UiUtils::DefaultSpacings::SMALL)); It has
margins around the frame's child widget instead.
+ //portal_box->set_margin(Utils::to_utype(Glom::UiUtils::DefaultSpacings::SMALL)); It has margins
around the frame's child widget instead.
portal_box->show();
notebook_widget->append_page(*portal_box, *tab_label);
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_formatting.cc
b/glom/mode_design/layout/layout_item_dialogs/dialog_formatting.cc
index 3902aef..b37ffe1 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_formatting.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_formatting.cc
@@ -29,7 +29,7 @@ Dialog_Formatting::Dialog_Formatting()
: m_box_formatting(nullptr)
{
set_title(_("Formatting"));
- set_border_width(6);
+ set_margin(6);
//Get the formatting stuff:
Utils::box_pack_start_glade_child_widget_derived_with_warning(get_content_area(), m_box_formatting);
diff --git a/glom/utility_widgets/adddel/adddel_withbuttons.cc
b/glom/utility_widgets/adddel/adddel_withbuttons.cc
index cd9a178..c4fa3ca 100644
--- a/glom/utility_widgets/adddel/adddel_withbuttons.cc
+++ b/glom/utility_widgets/adddel/adddel_withbuttons.cc
@@ -52,9 +52,9 @@ void AddDel_WithButtons::init()
m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
m_ButtonBox.set_spacing(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
- //m_Button_Add.set_border_width(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
- //m_Button_Del.set_border_width(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
- //m_Button_Edit.set_border_width(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
+ //m_Button_Add.set_margin(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
+ //m_Button_Del.set_margin(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
+ //m_Button_Edit.set_margin(Utils::to_utype(UiUtils::DefaultSpacings::SMALL));
setup_buttons();
pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
diff --git a/glom/utility_widgets/eggspreadtablemm/test_spreadtablednd.cc
b/glom/utility_widgets/eggspreadtablemm/test_spreadtablednd.cc
index 1b96fc7..ffffbd2 100644
--- a/glom/utility_widgets/eggspreadtablemm/test_spreadtablednd.cc
+++ b/glom/utility_widgets/eggspreadtablemm/test_spreadtablednd.cc
@@ -155,7 +155,7 @@ create_window()
auto vbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL, 6));
vbox->show();
- window->set_border_width (8);
+ window->set_margin (8);
window->add (*hbox);
hbox->pack_start(*vbox, false, false, 0);
diff --git a/glom/window_boxholder.cc b/glom/window_boxholder.cc
index a5c217f..2429969 100644
--- a/glom/window_boxholder.cc
+++ b/glom/window_boxholder.cc
@@ -37,7 +37,7 @@ Window_BoxHolder::Window_BoxHolder(Box_WithButtons* pBox, const Glib::ustring& t
pBox->signal_cancelled.connect(sigc::mem_fun(*this, &Window_BoxHolder::on_box_cancelled));
- set_border_width(Utils::to_utype(UiUtils::DefaultSpacings::LARGE));
+ set_margin(Utils::to_utype(UiUtils::DefaultSpacings::LARGE));
add(*pBox);
pBox->show();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]