From b5bacb3be640a25eb7573090df6d1af6a9adcc7e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 25 Feb 2020 20:57:20 -0500 Subject: [PATCH] Drop the margin property Replace it with margin-start, -end, -top, -bottom throughout. --- .../constraint-editor-window.c | 5 +- demos/constraint-editor/constraint-editor.ui | 5 +- demos/constraint-editor/guide-editor.ui | 5 +- demos/gtk-demo/assistant.c | 10 +- demos/gtk-demo/clipboard.c | 20 +- demos/gtk-demo/colorsel.c | 5 +- demos/gtk-demo/combobox.c | 25 ++- demos/gtk-demo/cursors.ui | 185 ++++++++++++++---- demos/gtk-demo/dialog.c | 10 +- demos/gtk-demo/drawingarea.c | 5 +- demos/gtk-demo/editable_cells.c | 5 +- demos/gtk-demo/entry_completion.c | 5 +- demos/gtk-demo/entry_undo.c | 5 +- demos/gtk-demo/filtermodel.ui | 5 +- demos/gtk-demo/font-features.ui | 10 +- demos/gtk-demo/glarea.c | 5 +- demos/gtk-demo/iconscroll.c | 5 +- demos/gtk-demo/images.c | 5 +- demos/gtk-demo/infobar.c | 10 +- demos/gtk-demo/list_store.c | 5 +- demos/gtk-demo/modelbutton.ui | 20 +- demos/gtk-demo/panes.c | 10 +- demos/gtk-demo/password_entry.c | 5 +- demos/gtk-demo/pickers.c | 5 +- demos/gtk-demo/popover.c | 10 +- demos/gtk-demo/scale.ui | 5 +- demos/gtk-demo/search_entry.c | 5 +- demos/gtk-demo/shortcuts.ui | 5 +- demos/gtk-demo/sizegroup.c | 15 +- demos/gtk-demo/sliding_puzzle.c | 5 +- demos/gtk-demo/spinbutton.ui | 5 +- demos/gtk-demo/spinner.c | 5 +- demos/gtk-demo/tagged_entry.c | 5 +- demos/gtk-demo/themes.ui | 5 +- demos/gtk-demo/theming.ui | 5 +- demos/gtk-demo/transparent.c | 10 +- demos/gtk-demo/tree_store.c | 5 +- demos/icon-browser/iconbrowserwin.c | 5 +- demos/icon-browser/window.ui | 15 +- demos/widget-factory/widget-factory.c | 20 +- demos/widget-factory/widget-factory.ui | 91 +++++++-- docs/tools/widgets.c | 8 +- examples/application10/prefs.ui | 5 +- examples/application6/prefs.ui | 5 +- examples/application7/prefs.ui | 5 +- examples/application8/prefs.ui | 5 +- examples/application9/prefs.ui | 5 +- gtk/gtkcustompaperunixdialog.c | 5 +- gtk/gtkmenusectionbox.c | 3 - gtk/gtkmodelbutton.c | 5 +- gtk/gtkplacessidebar.c | 5 +- gtk/gtkprintbackend.c | 5 +- gtk/gtkshortcutswindow.c | 10 +- gtk/gtktext.c | 5 +- gtk/gtktextview.c | 5 +- gtk/gtkwidget.c | 29 --- gtk/inspector/controllers.c | 5 +- gtk/inspector/css-editor.ui | 5 +- gtk/inspector/data-list.ui | 5 +- gtk/inspector/general.c | 8 +- gtk/inspector/general.ui | 100 ++++++++-- gtk/inspector/logs.ui | 5 +- gtk/inspector/misc-info.ui | 110 ++++++++--- gtk/inspector/recorder.c | 11 +- gtk/inspector/recorder.ui | 5 +- gtk/inspector/resource-list.ui | 5 +- gtk/inspector/size-groups.c | 15 +- gtk/inspector/type-info.c | 15 +- gtk/inspector/visual.ui | 105 ++++++++-- gtk/inspector/window.ui | 25 ++- gtk/ui/gtkaboutdialog.ui | 15 +- gtk/ui/gtkappchooserwidget.ui | 5 +- gtk/ui/gtkassistant.ui | 5 +- gtk/ui/gtkcolorchooserdialog.ui | 10 +- gtk/ui/gtkemojichooser.ui | 5 +- gtk/ui/gtkfilechooserdialog.ui | 5 +- gtk/ui/gtkfilechooserwidget.ui | 25 ++- gtk/ui/gtkfontchooserdialog.ui | 5 +- gtk/ui/gtkfontchooserwidget.ui | 5 +- gtk/ui/gtkpagesetupunixdialog.ui | 10 +- gtk/ui/gtkplacesview.ui | 10 +- gtk/ui/gtkprintunixdialog.ui | 35 +++- gtk/ui/gtkscalebutton.ui | 5 +- tests/gdkgears.c | 6 +- tests/popover2.ui | 15 +- tests/testadjustsize.c | 3 +- tests/testborderdrawing.c | 5 +- tests/testbox.c | 15 +- tests/testdialog.c | 5 +- tests/testdnd2.c | 5 +- tests/testentryicons.c | 15 +- tests/testexpand.c | 20 +- tests/testfilechooserbutton.c | 5 +- tests/testframe.c | 5 +- tests/testgtk.c | 10 +- tests/testheaderbar.c | 5 +- tests/testheightforwidth.c | 5 +- tests/testlevelbar.c | 5 +- tests/testlist3.c | 5 +- tests/testlogout.c | 5 +- tests/testoutsetshadowdrawing.c | 5 +- tests/testoverlay.c | 48 ++++- tests/testpopover.c | 5 +- tests/testscrolledge.c | 10 +- tests/testselectionmode.c | 5 +- tests/testsplitheaders.ui | 5 +- tests/testtoolbar2.c | 6 +- testsuite/gtk/notify.c | 1 - 108 files changed, 1153 insertions(+), 321 deletions(-) diff --git a/demos/constraint-editor/constraint-editor-window.c b/demos/constraint-editor/constraint-editor-window.c index c4b545c2d8..6cccc0f914 100644 --- a/demos/constraint-editor/constraint-editor-window.c +++ b/demos/constraint-editor/constraint-editor-window.c @@ -601,7 +601,10 @@ create_widget_func (gpointer item, g_object_bind_property (item, "name", label, "label", G_BINDING_DEFAULT); - g_object_set (label, "margin", 10, NULL); + gtk_widget_set_margin_start (label, 10); + gtk_widget_set_margin_end (label, 10); + gtk_widget_set_margin_top (label, 10); + gtk_widget_set_margin_bottom (label, 10); gtk_label_set_xalign (GTK_LABEL (label), 0.0); gtk_widget_set_hexpand (label, TRUE); gtk_container_add (GTK_CONTAINER (row), box); diff --git a/demos/constraint-editor/constraint-editor.ui b/demos/constraint-editor/constraint-editor.ui index 8d12a37758..a9054756a7 100644 --- a/demos/constraint-editor/constraint-editor.ui +++ b/demos/constraint-editor/constraint-editor.ui @@ -3,7 +3,10 @@