From de6c275a7981bd9fe1bd352993ccba6987f79394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Wed, 5 Feb 2025 14:15:05 +0100 Subject: [PATCH] M!184 - Replace padding properties with margin The padding properties are deprecated and replaced by margin. Closes: https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/184 --- .../gui/contact-editor/contact-editor.ui | 15 ++--- .../contact-list-editor.ui | 2 +- src/e-util/e-import-assistant.c | 24 ++++---- src/e-util/e-name-selector-dialog.c | 13 +++-- src/e-util/filter.ui | 9 ++- .../gal-view-instance-save-as-dialog.ui | 4 +- src/mail/mail-config.ui | 58 +++++++++---------- .../calendar/e-calendar-preferences.ui | 6 +- 8 files changed, 69 insertions(+), 62 deletions(-) diff --git a/src/addressbook/gui/contact-editor/contact-editor.ui b/src/addressbook/gui/contact-editor/contact-editor.ui index f09f69e236..dbdb72f507 100644 --- a/src/addressbook/gui/contact-editor/contact-editor.ui +++ b/src/addressbook/gui/contact-editor/contact-editor.ui @@ -404,11 +404,12 @@ True False + 6 + 6 False False - 6 1 @@ -1283,8 +1284,8 @@ 6 0.15000000596046448 0.69999998807907104 - 19 - 10 + 19 + 10 True @@ -1511,8 +1512,8 @@ 6 0.15000000596046448 0.69999998807907104 - 19 - 10 + 19 + 10 True @@ -1737,8 +1738,8 @@ 6 0.15000000596046448 0.69999998807907104 - 19 - 10 + 19 + 10 True diff --git a/src/addressbook/gui/contact-list-editor/contact-list-editor.ui b/src/addressbook/gui/contact-list-editor/contact-list-editor.ui index 6413239bd4..d64030dbdd 100644 --- a/src/addressbook/gui/contact-list-editor/contact-list-editor.ui +++ b/src/addressbook/gui/contact-list-editor/contact-list-editor.ui @@ -169,7 +169,7 @@ True False - 12 + 12 True diff --git a/src/e-util/e-import-assistant.c b/src/e-util/e-import-assistant.c index b9c2fac199..490eaf428e 100644 --- a/src/e-util/e-import-assistant.c +++ b/src/e-util/e-import-assistant.c @@ -1371,16 +1371,20 @@ import_assistant_construct (EImportAssistant *import_assistant) /* complex import assistant pages */ /* Start page */ - page = gtk_label_new (""); - gtk_label_set_line_wrap (GTK_LABEL (page), TRUE); - gtk_label_set_width_chars (GTK_LABEL (page), 20); - gtk_label_set_xalign (GTK_LABEL (page), 0); - gtk_misc_set_padding (GTK_MISC (page), 12, 12); - gtk_label_set_text (GTK_LABEL (page), _( - "Welcome to the Evolution Import Assistant.\n" - "With this assistant you will be guided through the " - "process of importing external files into Evolution.")); - gtk_widget_show (page); + page = g_object_new (GTK_TYPE_LABEL, + "line-wrap", TRUE, + "width-chars", 20, + "xalign", 0.0, + "margin-start", 12, + "margin-end", 12, + "margin-top", 12, + "margin-bottom", 12, + "text", _( + "Welcome to the Evolution Import Assistant.\n" + "With this assistant you will be guided through the " + "process of importing external files into Evolution."), + "visible", TRUE, + NULL); gtk_assistant_append_page (assistant, page); gtk_assistant_set_page_title ( diff --git a/src/e-util/e-name-selector-dialog.c b/src/e-util/e-name-selector-dialog.c index e830518503..b15061967d 100644 --- a/src/e-util/e-name-selector-dialog.c +++ b/src/e-util/e-name-selector-dialog.c @@ -409,12 +409,15 @@ name_selector_dialog_constructed (GObject *object) gtk_widget_show (destination_vgrid); gtk_container_add (GTK_CONTAINER (hgrid), destination_vgrid); - status_message = gtk_label_new (""); - gtk_widget_show (status_message); + status_message = g_object_new ( + GTK_TYPE_LABEL, + "margin-top", 3, + "margin-bottom", 3, + "use-markup", TRUE, + "visible", TRUE, + "xalign", 0.0, + NULL); gtk_container_add (GTK_CONTAINER (name_selector_grid), status_message); - gtk_label_set_use_markup (GTK_LABEL (status_message), TRUE); - gtk_label_set_xalign (GTK_LABEL (status_message), 0); - gtk_misc_set_padding (GTK_MISC (status_message), 0, 3); gtk_label_set_mnemonic_widget (GTK_LABEL (AddressBookLabel), source_menu_hgrid); gtk_label_set_mnemonic_widget (GTK_LABEL (label_category), combobox_category); diff --git a/src/e-util/filter.ui b/src/e-util/filter.ui index 866066f4d5..7fb1c9622f 100644 --- a/src/e-util/filter.ui +++ b/src/e-util/filter.ui @@ -131,11 +131,12 @@ True False + 1 + 1 False True - 1 1 @@ -248,8 +249,8 @@ a time relative to when filtering occurs. True False - 5 - 58 + 5 + 58 True @@ -312,7 +313,6 @@ a time relative to when filtering occurs. False True - 2 1 @@ -638,7 +638,6 @@ a time relative to when filtering occurs. True True - 3 2 diff --git a/src/e-util/gal-view-instance-save-as-dialog.ui b/src/e-util/gal-view-instance-save-as-dialog.ui index 435482079b..567d3c3440 100644 --- a/src/e-util/gal-view-instance-save-as-dialog.ui +++ b/src/e-util/gal-view-instance-save-as-dialog.ui @@ -33,7 +33,7 @@ True False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 24 + 24 True @@ -109,7 +109,7 @@ True False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 24 + 24 True diff --git a/src/mail/mail-config.ui b/src/mail/mail-config.ui index 33ecf7c84e..919b2850f6 100644 --- a/src/mail/mail-config.ui +++ b/src/mail/mail-config.ui @@ -202,7 +202,7 @@ True False - 12 + 12 True @@ -483,7 +483,7 @@ True False - 12 + 12 True @@ -789,7 +789,7 @@ True False - 12 + 12 @@ -858,7 +858,7 @@ True False - 12 + 12 True @@ -960,7 +960,7 @@ True False - 12 + 12 True @@ -1040,7 +1040,7 @@ True False - 12 + 12 True @@ -1389,10 +1389,10 @@ True False - 6 - 6 - 6 - 6 + 6 + 6 + 6 + 6 True @@ -1501,10 +1501,10 @@ True False - 6 - 6 - 6 - 6 + 6 + 6 + 6 + 6 True @@ -1624,10 +1624,10 @@ True False - 6 - 6 - 6 - 6 + 6 + 6 + 6 + 6 True @@ -1834,7 +1834,7 @@ True False - 12 + 12 True @@ -1937,7 +1937,7 @@ True False - 12 + 12 True @@ -1963,7 +1963,7 @@ True False - 24 + 24 True @@ -2325,7 +2325,7 @@ True False - 12 + 12 True @@ -2466,7 +2466,7 @@ True False - 12 + 12 True @@ -2563,7 +2563,7 @@ True False - 12 + 12 True @@ -2642,7 +2642,7 @@ True False - 12 + 12 True @@ -2990,7 +2990,7 @@ True False - 12 + 12 @@ -3050,7 +3050,7 @@ True False - 12 + 12 True @@ -3148,7 +3148,7 @@ True False - 12 + 12 True @@ -3302,7 +3302,7 @@ True False - 12 + 12 True diff --git a/src/modules/calendar/e-calendar-preferences.ui b/src/modules/calendar/e-calendar-preferences.ui index fc22614062..6987d64daa 100644 --- a/src/modules/calendar/e-calendar-preferences.ui +++ b/src/modules/calendar/e-calendar-preferences.ui @@ -1579,8 +1579,8 @@ True False - 10 - 10 + 10 + 10 True @@ -2010,7 +2010,7 @@ True False - 12 + 12 True -- GitLab