Skip to content

Commit 32675ab

Browse files
fxriraveit65
authored andcommitted
Replace remaining uses of margin-left and margin-right properties
Replaced with margin-start and margin-end, which should make EomMetadataSidebar's layout in RTL environments more similar to the LTR layout. origin commit: https://gitlab.gnome.org/GNOME/eog/commit/00641d2
1 parent e6cda96 commit 32675ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/eom-metadata-sidebar.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ _gtk_grid_append_prop_line (GtkGrid *grid, GtkWidget *sibling,
145145
gtk_label_set_line_wrap (GTK_LABEL(*data_label), TRUE);
146146
gtk_misc_set_alignment (GTK_MISC (*data_label), 0.0, 0.0);
147147
// Add a small margin to make it a sublabel to the first label
148-
gtk_widget_set_margin_left (*data_label, 12);
148+
gtk_widget_set_margin_start (*data_label, 12);
149149
gtk_box_pack_end (GTK_BOX(box), *data_label, FALSE, FALSE, 0);
150150
}
151151
gtk_grid_attach_next_to (grid, box, sibling, GTK_POS_BOTTOM, 2, 1);
@@ -515,8 +515,8 @@ eom_metadata_sidebar_init (EomMetadataSidebar *sidebar)
515515
priv->folder_button = gtk_button_new_with_label ("");
516516
g_signal_connect (priv->folder_button, "clicked",
517517
G_CALLBACK (_folder_button_clicked_cb), sidebar);
518-
gtk_widget_set_margin_left (priv->folder_button, 12);
519-
gtk_widget_set_margin_right (priv->folder_button, 12);
518+
gtk_widget_set_margin_start (priv->folder_button, 12);
519+
gtk_widget_set_margin_end (priv->folder_button, 12);
520520
gtk_widget_set_margin_top (priv->folder_button, 3);
521521
gtk_widget_set_tooltip_text (priv->folder_button, _("Show the folder "
522522
"which contains this file in the file manager"));

0 commit comments

Comments
 (0)