Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fxri authored and raveit65 committed Jul 8, 2018
1 parent e6cda96 commit 32675ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/eom-metadata-sidebar.c
Expand Up @@ -145,7 +145,7 @@ _gtk_grid_append_prop_line (GtkGrid *grid, GtkWidget *sibling,
gtk_label_set_line_wrap (GTK_LABEL(*data_label), TRUE);
gtk_misc_set_alignment (GTK_MISC (*data_label), 0.0, 0.0);
// Add a small margin to make it a sublabel to the first label
gtk_widget_set_margin_left (*data_label, 12);
gtk_widget_set_margin_start (*data_label, 12);
gtk_box_pack_end (GTK_BOX(box), *data_label, FALSE, FALSE, 0);
}
gtk_grid_attach_next_to (grid, box, sibling, GTK_POS_BOTTOM, 2, 1);
Expand Down Expand Up @@ -515,8 +515,8 @@ eom_metadata_sidebar_init (EomMetadataSidebar *sidebar)
priv->folder_button = gtk_button_new_with_label ("");
g_signal_connect (priv->folder_button, "clicked",
G_CALLBACK (_folder_button_clicked_cb), sidebar);
gtk_widget_set_margin_left (priv->folder_button, 12);
gtk_widget_set_margin_right (priv->folder_button, 12);
gtk_widget_set_margin_start (priv->folder_button, 12);
gtk_widget_set_margin_end (priv->folder_button, 12);
gtk_widget_set_margin_top (priv->folder_button, 3);
gtk_widget_set_tooltip_text (priv->folder_button, _("Show the folder "
"which contains this file in the file manager"));
Expand Down

0 comments on commit 32675ab

Please sign in to comment.