summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Riemann <friemann@gnome.org>2014-08-10 15:20:52 +0200
committerFelix Riemann <friemann@gnome.org>2014-08-10 15:20:52 +0200
commit00641d24f94fd69c033d41c9314eec9a9f269f17 (patch)
treefc1e87fe75acb5d99c662a93b0b5b63924572605
parentd53d813e7f99ce2cf85e4d79531f9fbd7042ab83 (diff)
downloadeog-00641d24f94fd69c033d41c9314eec9a9f269f17.tar.gz
Replace remaining uses of margin-left and margin-right properties
Replaced with margin-start and margin-end, which should make EogMetadataSidebar's layout in RTL environments more similar to the LTR layout.
-rw-r--r--src/eog-metadata-sidebar.c6
-rw-r--r--src/eog-statusbar.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/eog-metadata-sidebar.c b/src/eog-metadata-sidebar.c
index 9bcacbec..2ff6d4f7 100644
--- a/src/eog-metadata-sidebar.c
+++ b/src/eog-metadata-sidebar.c
@@ -143,7 +143,7 @@ _gtk_grid_append_prop_line (GtkGrid *grid, GtkWidget *sibling,
gtk_widget_set_halign (*data_label, GTK_ALIGN_START);
gtk_widget_set_valign (*data_label, GTK_ALIGN_START);
// 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);
@@ -514,8 +514,8 @@ eog_metadata_sidebar_init (EogMetadataSidebar *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"));
diff --git a/src/eog-statusbar.c b/src/eog-statusbar.c
index 38904522..52c74353 100644
--- a/src/eog-statusbar.c
+++ b/src/eog-statusbar.c
@@ -81,8 +81,8 @@ eog_statusbar_init (EogStatusbar *statusbar)
/* Set margins by hand to avoid causing redraws due to the statusbar
* becoming too small for the progressbar */
- gtk_widget_set_margin_left (priv->progressbar, 2);
- gtk_widget_set_margin_right (priv->progressbar, 2);
+ gtk_widget_set_margin_start (priv->progressbar, 2);
+ gtk_widget_set_margin_end (priv->progressbar, 2);
gtk_widget_set_margin_top (priv->progressbar, 1);
gtk_widget_set_margin_bottom (priv->progressbar, 0);